Skip to content

Commit 39cf434

Browse files
author
PR Batch Tester
committed
fix(devices): recognize the hub's boot timeout
1 parent 84f909e commit 39cf434

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎apps/server/src/device/DeviceHubOperations.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const makeDeviceHubOperations = (options: {
189189
diagnostics,
190190
)
191191
? "disk_space"
192-
: /timed? out|timeout/i.test(diagnostics)
192+
: /timed? out|timeout|did not respond within/i.test(diagnostics)
193193
? "timeout"
194194
: "launch_failed",
195195
...(diagnostics

‎apps/server/src/device/DeviceService.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,12 @@ it.effect.each([
616616
reason: "timeout",
617617
message: "did not become ready in time",
618618
},
619+
{
620+
diagnostic:
621+
"[apple-utils] `xcrun simctl boot iphone` did not respond within 120 s; CoreSimulatorService may need restarting",
622+
reason: "timeout",
623+
message: "did not become ready in time",
624+
},
619625
{
620626
diagnostic:
621627
"The emulator process exited with code 1.\nTry manually: emulator -avd Pixel_API_35",

0 commit comments

Comments
 (0)