Skip to content

Commit

Permalink
chore: timeout to download sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed Sep 17, 2023
1 parent 12ae5a4 commit 19dbf99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/afterStart.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ beforeAll(async () => {
if (emulatorId) {
await android.ensureReady(emulatorId);
}
}, 300000);
}, 1200000);

afterAll(async () => {
await android.waitForStop(emulatorId);
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 19dbf99

Please sign in to comment.