e2e: specs with fixed ports collide when two worktrees run Playwright at once #67
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during #55. Many specs start extra daemons/servers on hard-coded ports (swarm-mvp uses 7775, and others use 7730–7791 and 7800+). Two worktrees running the full suite on one host fail with EADDRINUSE (seen: swarm-mvp.spec.ts on 7775 while another worktree's suite ran). E2E_PORT only moves the main daemon. Fix as #66 did for Rust tests: let each extra daemon bind 127.0.0.1:0 and read its port from state/listen (and let fake servers listen on 0), so a run needs no reserved ports.
Fixed in
af36338: web/e2e/ports.ts; every extra daemon, control and fake server gets an OS-given port (daemons and control write theirs to state). A run reserves only E2E_PORT. Two full suites ran at once on 7720 and 7724 with no EADDRINUSE.