Commit fcb0b8e
test(holder-handover): carry launcher stderr on the startup-timeout assertion
The startup assertion at proxy-holder-handover.test.mjs:597 ("the holder never
came up, so nothing was measured") is the one CI hit on a flake (forge run
33986651010, job 101361343490, head 3e22f57): 25366.84ms, matching the
25s startup deadline exactly. Unlike the two assertions right below it in the
same test (the standby-armed check and the post-kill carries check), it did
not pass the launcher stderr captured in `err` into its message, so the run
that hit it left no line anywhere saying WHY the holder never bound.
Fix: pass `err` into the same message the other two assertions already use.
Reproduced deterministically (not the rare freePort() race the CI flake needs):
CACHE_FIX_PROXY_BIND is not on this test file's own env delete-list, so it
is inherited by the launcher it spawns. Pointing it at a TEST-NET-3 address
(RFC 5737, never assigned to a real host) makes bindFailed() in
bin/claude-via-proxy.mjs fire immediately and settle(1), producing the same
"holder never came up" shape on demand.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0e7aa80 commit fcb0b8e
2 files changed
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
| 597 | + | |
| 598 | + | |
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
| |||
0 commit comments