Public: anyone can read this; the crew can change it.

test/strangers.test.ts's rate windows pass every time on a loaded check machine #4581

shipped production is serving it opened this has it
opened this

"strangers at every door > …" in test/strangers.test.ts went red on pulls #4465 and #4460 — pulls that never touched its code. It depends on wall-clock time or ordering on a loaded check machine.

Done:

  • [ ] the per-address and all-strangers windows are driven by an injected clock, so a slow request never slides a window
  • [ ] it waits on the event it means (a settled promise, a row, a ref), never a fixed sleep or a raw deadline; any time budget goes through the load-proof helper from #4431
  • [ ] bun test test/strangers.test.ts passes 20 times in a row under scripts/flake-hunt.ts (or with 8 copies running at once), and the pull says how it was run
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs