Health check test uses addresses nothing can connect to (closes #158) #164

Merged
clawbot merged 1 commits from issue-158-healthcheck-test-ports into next 2026-10-27 21:00:17 +01:00
1 Commits
Author SHA1 Message Date
sneak 85afeede84 Health check test uses addresses nothing can connect to (closes #158)
check / check (push) Waiting to run
TestHealthCheck closed the app's server, and later smallwebwaf, and
expected connections to the freed ports to fail. Another test could take
such a port in between, so the connection succeeded and the test failed.

The failing app check now uses the multicast address 224.0.0.1, to which
TCP cannot connect. The failing smallwebwaf check uses port 0, on which
nothing listens. Neither result depends on other processes. The test now
stops smallwebwaf after its last check, so that it exits before the
test's temporary directories are removed. The code under test is
unchanged.

Model: opus-5-5
2026-10-27 19:01:18 +00:00