Skip to content

Commit 40ea994

Browse files
committed
tests: wait for tcp port for all test types.
The `run_mtls_client_tests` and `run_mtls_client_crl_tests` were being run without calling `wait_tcp_port` first. I suspect this is the reason we sometimes see the connect tests fail in CI on some platforms with output about the connection being refused.
1 parent 6f9bcf5 commit 40ea994

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/client-server.py

+2
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ def main():
219219
server_popen = run_server(server, valgrind, {
220220
"AUTH_CERT": "testdata/minica.pem",
221221
})
222+
wait_tcp_port(HOST, PORT)
222223
run_mtls_client_tests(client, valgrind)
223224
server_popen.kill()
224225
server_popen.wait()
@@ -228,6 +229,7 @@ def main():
228229
"AUTH_CERT": "testdata/minica.pem",
229230
"AUTH_CRL": "testdata/test.crl.pem",
230231
})
232+
wait_tcp_port(HOST, PORT)
231233
run_mtls_client_crl_tests(client, valgrind)
232234

233235

0 commit comments

Comments
 (0)