mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 05:32:44 +00:00
test(hopper): allow a pending launcher exit at startup timeout (#12544)
Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
This commit is contained in:
1 parent
28f227a24e
commit
3b1527a56f
1 file changed
+11
-1
@@ -330,7 +330,17 @@ test.for(["handoff", "not-found"] as const)(
|
||||
: "provider_unavailable",
|
||||
details:
|
||||
launchMode === "handoff"
|
||||
? { timeout_ms: startupTimeoutMs, launcher: { exit_code: 0 } }
|
||||
? {
|
||||
timeout_ms: startupTimeoutMs,
|
||||
launcher: {
|
||||
// The receipt proves launch. The deadline snapshot may
|
||||
// precede delivery of the successful child exit event.
|
||||
exit_code: expect.toSatisfy(
|
||||
(exitCode: unknown) =>
|
||||
exitCode === null || exitCode === 0,
|
||||
),
|
||||
},
|
||||
}
|
||||
: { stage: "launch", launcher: { exit_code: 3 } },
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user