From eaba282f99c362239343d11c4d57c596fb932f1a Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Thu, 25 Jan 2024 13:24:14 +0100 Subject: [PATCH] Add comment --- lib/commands/device/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/commands/device/utils.js b/lib/commands/device/utils.js index b0128f56..5a2f5192 100644 --- a/lib/commands/device/utils.js +++ b/lib/commands/device/utils.js @@ -110,6 +110,7 @@ export async function prepareEmulator(adb) { const avdName = avd.replace('@', ''); let isEmulatorRunning = true; try { + // This API implicitly modifies curDeviceId and emulatorPort properties of the adb instance await adb.getRunningAVDWithRetry(avdName, 5000); } catch (e) { this.log.debug(`Emulator '${avdName}' is not running: ${e.message}`);