Skip to content

Commit 69abc42

Browse files
authored
fix: stop uia2 process as well in cleanupAutomationLeftovers (#807)
1 parent 36542a4 commit 69abc42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/uiautomator2.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,10 @@ class UiAutomator2Server {
413413
}
414414

415415
try {
416-
await this.adb.forceStop(SERVER_TEST_PACKAGE_ID);
416+
await B.all([
417+
this.adb.forceStop(SERVER_PACKAGE_ID),
418+
this.adb.forceStop(SERVER_TEST_PACKAGE_ID)
419+
]);
417420
} catch (ignore) {}
418421
if (strictCleanup) {
419422
// https://github.com/appium/appium/issues/10749

0 commit comments

Comments
 (0)