From 4e26bedaa143e956b0a3aeeae890d69c3463e3b4 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Mon, 22 Jul 2024 15:33:40 -0700 Subject: [PATCH] fix: stop uia2 process as well --- lib/uiautomator2.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/uiautomator2.js b/lib/uiautomator2.js index 0cc3b22f2..263b409cc 100644 --- a/lib/uiautomator2.js +++ b/lib/uiautomator2.js @@ -413,7 +413,10 @@ class UiAutomator2Server { } try { - await this.adb.forceStop(SERVER_TEST_PACKAGE_ID); + await B.all([ + this.adb.forceStop(SERVER_PACKAGE_ID), + this.adb.forceStop(SERVER_TEST_PACKAGE_ID) + ]); } catch (ignore) {} if (strictCleanup) { // https://github.com/appium/appium/issues/10749