Files
bun.sh/test/js
Alistair Smith a028ee95df fix(test): replace timing-based waits with condition-based waits in SIGUSR1 tests
Replace Bun.sleep() calls with condition-based waiting to avoid flaky tests.
Instead of waiting for an arbitrary amount of time, now we read from stderr
until the expected "Debugger listening" message appears.

Changes:
- First test: read stderr until "Debugger listening" appears before killing
- Third test: wait for "Debugger listening" before sending second SIGUSR1
- Fifth/sixth tests: remove unnecessary sleeps since signal processing is
  synchronous and we can kill immediately after sending SIGUSR1
2026-01-06 09:12:27 -08:00
..
2026-01-06 09:12:26 -08:00