Skip to content

Commit 231dafc

Browse files
committed
fix: add proxy container wait strategy to prevent flaky tests
1 parent c7d2f1b commit 231dafc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/test_transport_options.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from testcontainers.core.container import DockerContainer
88
from testcontainers.core.network import Network
9+
from testcontainers.core.wait_strategies import PortWaitStrategy
910
from testcontainers.core.waiting_utils import wait_container_is_ready
1011

1112
from zitadel_client.transport_options import TransportOptions
@@ -61,6 +62,7 @@ def setup_class(cls) -> None:
6162
.with_network(cls.network)
6263
.with_exposed_ports(3128)
6364
.with_volume_mapping(squid_conf, "/etc/squid/squid.conf", mode="ro")
65+
.waiting_for(PortWaitStrategy(3128))
6466
)
6567
cls.proxy.start()
6668

0 commit comments

Comments
 (0)