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:
ShuaixinHuangandShuaixinHuang authored and GitHub committed 2026-11-19 17:27:50 -05:00
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 } },
},
},