diff options
| author | Jesse Vincent <jesse@fsck.com> | 2026-11-03 02:51:38 +0000 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2026-11-03 02:51:38 +0000 |
| commit | 78c867996a73b86cd356431346af304a0d76afa6 (patch) | |
| tree | 8fddc972a73e9af7501442df0e638d8e29842b6b /tests/opencode/setup.sh | |
| parent | e82bda463976eb96fe5e442b656199e6ce0f5c3e (diff) | |
test(brainstorm-server): drain the socket before counting reloads
The two "does NOT send reload" tests waited for the barrier file's
screen-added line on stdout, then counted reloads on the WebSocket. The
server logs and broadcasts in the same tick, but stdout and the socket
are separate channels, and on Linux stdout usually won: the socket had
0 reloads when the barrier fired and 1 reload 300ms later, so the tests
failed in 8 of 10 runs.
They now ping the server after the barrier and wait for the pong. The
server writes it on the same socket after the reload, so every reload
sent before it has arrived. 30 consecutive clean runs; with the server's
.html filter removed, both tests still fail.
Diffstat (limited to 'tests/opencode/setup.sh')
0 files changed, 0 insertions, 0 deletions
