Start test servers on a port the system picks (closes #211) #212

Merged
clawbot merged 1 commits from issue-211-test-ports into next 2026-10-27 13:34:46 +01:00
1 Commits
Author SHA1 Message Date
clawbot 4e960a61ee Start test servers on a port the system picks (closes #211)
check / check (push) Waiting to run
The internal/server and internal/ircserver tests picked a port by
opening a listener, reading its port and closing it. They then started
a server on that number. Another process could take the port in
between, and a test failed with "address already in use".

The IRC server tests now start the server on 127.0.0.1:0 and read the
port back from its listener. The HTTP server tests start the app with
port 0. The HTTP server now keeps the listener it binds, so the stop
test sends its long poll to the port the app was given.

Model: opus-5-5
2026-10-27 12:16:02 +00:00