Commit 7093459
committed
test(claude): give the idle-ping test headroom against timer scheduling
Failed on macos-latest while passing everywhere else. The upstream went
silent for 90ms with a 25ms ping interval and the test asserted >=3
pings — a margin of 3.6 intervals. One coalesced timer on a loaded
runner is enough to miss it, and timer scheduling is best-effort by
definition.
Silence goes to 300ms, twelve intervals against the same >=3. The
assertion is untouched: it still proves idle pings flow during upstream
silence, it just no longer depends on the runner delivering timers on
schedule.
Ablated by disabling the ping branch in src/claude/outbound.ts — the
test fails, so the headroom did not hollow it out.1 parent 81f3f68 commit 7093459
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
345 | 356 | | |
346 | 357 | | |
347 | 358 | | |
348 | 359 | | |
349 | | - | |
| 360 | + | |
350 | 361 | | |
351 | 362 | | |
352 | 363 | | |
353 | 364 | | |
354 | | - | |
| 365 | + | |
355 | 366 | | |
356 | 367 | | |
357 | 368 | | |
| |||
0 commit comments