Skip to content

Commit

Permalink
Merge pull request #5 from wtto00/dev
Browse files Browse the repository at this point in the history
fix: Change the waiting time for restart to retry 1200 times.
  • Loading branch information
wtto00 authored Oct 1, 2023
2 parents a52dcb1 + 681ec94 commit 75c7419
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wtto00/android-tools",
"version": "1.0.3",
"version": "1.0.4",
"description": "Node module for managing and controlling the Android Devices.",
"type": "module",
"main": "dist/lib/index.cjs",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class Android {
await retry(async () => {
const proc = await this.adb(emulatorId, 'shell getprop sys.boot_completed');
return proc.output.trim() === '1';
}, 100);
}, 1200);
}

/**
Expand Down Expand Up @@ -271,7 +271,7 @@ class Android {
await this.stop(emulatorId);
const devices = await this.devices();
return !devices.some((device) => device.name === emulatorId && device.status === 'device');
}, 100);
}, 1200);
}

/**
Expand Down

0 comments on commit 75c7419

Please sign in to comment.