(udid)
| 733 | } |
| 734 | |
| 735 | async function waitForBooted(udid) { |
| 736 | const avdName = udid.replace(/^android:/, ""); |
| 737 | const deadline = Date.now() + 180_000; |
| 738 | while (Date.now() < deadline) { |
| 739 | if (runningAndroidAvds().has(avdName)) { |
| 740 | return; |
| 741 | } |
| 742 | await sleep(1_000); |
| 743 | } |
| 744 | throw new Error(`Timed out waiting for ${udid} to boot.`); |
| 745 | } |
| 746 | |
| 747 | async function cleanupAndroid() { |
| 748 | if (!session || !androidUDID || !shutdownAndroidAfterRun) { |
no test coverage detected