superpowers/tests/brainstorm-server
Jesse Vincent 78c867996a 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.
2026-11-03 02:51:38 +00:00
..
auth.test.js Fix companion test cleanup and argv assertions 2026-06-16 10:09:46 -07:00
branding.test.js fix: read Codex plugin version from manifest (PRI-2240) 2026-06-16 17:02:33 -07:00
browser-launcher.test.js Harden Windows browser launcher 2026-06-16 10:09:46 -07:00
helper.test.js Harden brainstorm companion auth regressions 2026-06-16 10:09:45 -07:00
lifecycle.test.js test(brainstorm-server): run shell helpers without a login shell 2026-09-26 19:28:19 -07:00
package-lock.json test(deps): bump ws to ^8.21.0 in brainstorm-server tests 2026-06-18 15:44:22 -07:00
package.json test(deps): bump ws to ^8.21.0 in brainstorm-server tests 2026-06-18 15:44:22 -07:00
server.test.js test(brainstorm-server): drain the socket before counting reloads 2026-11-03 02:51:38 +00:00
start-server.test.sh brainstorming: resolve a relative --project-dir before start-server.sh cds 2026-10-23 03:38:19 +00:00
stop-server.test.sh Fix companion stop metadata and token permissions 2026-06-16 10:09:46 -07:00
windows-lifecycle.test.sh Fix companion test cleanup and argv assertions 2026-06-16 10:09:46 -07:00
ws-protocol.test.js fix(brainstorming): cap websocket frame payloads 2026-06-16 10:09:45 -07:00