mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
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