Skip to content

Commit

Permalink
chore: use process existence check instead
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Sep 20, 2023
1 parent aa33ce1 commit 00613e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/uiautomator2.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,9 @@ class UiAutomator2Server {
try {
await waitForCondition(async () => {
try {
await this.jwproxy.command('/status', 'GET');
} catch (err) { return true; }
await this.adb.processExists(SERVER_TEST_PACKAGE_ID);
return true;
} catch (ignore) {}
}, {
waitMs: timeout,
intervalMs: 100,
Expand Down

0 comments on commit 00613e6

Please sign in to comment.