mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-09-04 03:19:33 +00:00
Update the README and fix some typos (#199)
* Updated the readme with the additional targets and fixed some typos * fix spacing with macos-11 * fix more typos
This commit is contained in:
committed by
GitHub
parent
cc46524d3f
commit
d15e7110de
@@ -83,7 +83,7 @@ export async function launchEmulator(
|
||||
}
|
||||
|
||||
/**
|
||||
* Kills the running emulator on the defaut port.
|
||||
* Kills the running emulator on the default port.
|
||||
*/
|
||||
export async function killEmulator(): Promise<void> {
|
||||
try {
|
||||
@@ -100,7 +100,7 @@ async function waitForDevice(): Promise<void> {
|
||||
let booted = false;
|
||||
let attempts = 0;
|
||||
const retryInterval = 2; // retry every 2 seconds
|
||||
const maxAttemps = EMULATOR_BOOT_TIMEOUT_SECONDS / 2;
|
||||
const maxAttempts = EMULATOR_BOOT_TIMEOUT_SECONDS / 2;
|
||||
while (!booted) {
|
||||
try {
|
||||
let result = '';
|
||||
@@ -120,7 +120,7 @@ async function waitForDevice(): Promise<void> {
|
||||
console.warn(error.message);
|
||||
}
|
||||
|
||||
if (attempts < maxAttemps) {
|
||||
if (attempts < maxAttempts) {
|
||||
await delay(retryInterval * 1000);
|
||||
} else {
|
||||
throw new Error(`Timeout waiting for emulator to boot.`);
|
||||
|
||||
Reference in New Issue
Block a user