diff --git a/spec/afterStart.test.ts b/spec/afterStart.test.ts index 616e802..bf223ba 100644 --- a/spec/afterStart.test.ts +++ b/spec/afterStart.test.ts @@ -21,7 +21,7 @@ beforeAll(async () => { if (emulatorId) { await android.ensureReady(emulatorId); } -}, 300000); +}, 1200000); afterAll(async () => { await android.waitForStop(emulatorId); diff --git a/src/index.ts b/src/index.ts index ec1f339..324338e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -227,7 +227,8 @@ class Android { */ async createAVD(options: CreateAVDOptions) { if (options.package) { - await this.sdkmanager(`--install ${options.package}`, 180000); + // Downloading the SDK takes a lot of time, so it's best to download it in advance. + await this.sdkmanager(`--install ${options.package}`, 600000); } const cmdParams = Object.keys(options).reduce((prev, curr) => { const val = options[curr as keyof CreateAVDOptions];