summaryrefslogtreecommitdiff
path: root/tests/opencode/test-session-bootstrap.mjs
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-11-03 02:51:38 +0000
committerJesse Vincent <jesse@fsck.com>2026-11-03 02:51:38 +0000
commit78c867996a73b86cd356431346af304a0d76afa6 (patch)
tree8fddc972a73e9af7501442df0e638d8e29842b6b /tests/opencode/test-session-bootstrap.mjs
parente82bda463976eb96fe5e442b656199e6ce0f5c3e (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/test-session-bootstrap.mjs')
0 files changed, 0 insertions, 0 deletions