diff --git a/modules/consul/consul.go b/modules/consul/consul.go index 08a6e0ece2..e4ec01fd02 100644 --- a/modules/consul/consul.go +++ b/modules/consul/consul.go @@ -70,6 +70,7 @@ func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomize Env: map[string]string{}, WaitingFor: wait.ForAll( wait.ForLog("Consul agent running!"), + wait.ForListeningPort(defaultHttpApiPort+"/tcp"), ), }, Started: true,