Skip to content

Commit 2cc1dc5

Browse files
committed
test: wait for squid to accept connections before proxying
The port probe passes before squid listens, so the proxy test failed whenever it ran first. Join the network, then wait on squid's log line.
1 parent 753a3e2 commit 2cc1dc5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎test/zitadel/client/zitadel_test.rb‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ def before_all
4848
.with_filesystem_binds("#{squid_conf}:/etc/squid/squid.conf:ro")
4949
.with_exposed_ports(3128)
5050
.start
51-
@proxy.wait_for_tcp_port(3128)
5251
@network.connect(@proxy._id)
52+
@proxy.wait_for_logs(/Accepting HTTP Socket connections/)
53+
@proxy.wait_for_tcp_port(3128)
5354

5455
@host = @wiremock.host
5556
@http_port = @wiremock.mapped_port(8080)

0 commit comments

Comments
 (0)