Repository navigation
Commit 84d3b65
test(node): de-flake the real-worker event-loop-watchdog e2e on CI
The watchdog worker spawns asynchronously and can only observe a block
that STARTS after it is polling. The test's single fixed 60ms "spin-up"
wait is racy on a loaded CI runner where worker_threads startup exceeds
it — the block then lands before monitoring begins and is never seen, so
onHang never fires and vi.waitFor times out (the CI failure).
Block the loop in ~120ms bursts and retry until one is caught (vi.waitFor,
8s ceiling): converges as soon as the worker is alive whatever the startup
latency, and stays ~sub-second on a healthy runner. No production change;
node coverage unchanged (100% line/fn/stmt, 98.48% branch).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1558f59 commit 84d3b65
1 file changed
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
259 | 270 | | |
260 | 271 | | |
261 | | - | |
| 272 | + | |
262 | 273 | | |
0 commit comments