From 7ec06072db0494e9b87cf20e89e2ed86fc3f5f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E9=9D=99=E5=87=A1?= <30424139+wtto00@users.noreply.github.com> Date: Sun, 1 Oct 2023 23:18:22 +0800 Subject: [PATCH 1/2] fix: Change the waiting time for restart to retry 1200 times. --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a80e3b1..3c9d6f8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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); } /** @@ -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); } /** From 681ec949b8441b251a4bc97ae03cb306623e47b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E9=9D=99=E5=87=A1?= <30424139+wtto00@users.noreply.github.com> Date: Sun, 1 Oct 2023 23:25:44 +0800 Subject: [PATCH 2/2] chore: version 1.0.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dcd0de7..2ad6106 100644 --- a/package.json +++ b/package.json @@ -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",