From aece23fe663dee25c6a45210f5417b5ee8fa9b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Mon, 28 Apr 2025 10:40:13 +0200 Subject: [PATCH] chore: remove wait strategy, it's handled by the module --- redis/redis_test.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/redis/redis_test.go b/redis/redis_test.go index 73de2307..b27a2634 100644 --- a/redis/redis_test.go +++ b/redis/redis_test.go @@ -11,7 +11,6 @@ import ( "github.com/testcontainers/testcontainers-go" "github.com/testcontainers/testcontainers-go/modules/redis" - "github.com/testcontainers/testcontainers-go/wait" ) const ( @@ -90,10 +89,6 @@ func newConfigFromContainer(t testing.TB, opts ...testStoreOption) Config { tcOpts := []testcontainers.ContainerCustomizer{} - waitStrategies := []wait.Strategy{ - wait.ForListeningPort(redisPort).WithStartupTimeout(time.Second * 10), - } - if settings.withTLS { tcOpts = append(tcOpts, redis.WithTLS()) @@ -116,8 +111,6 @@ func newConfigFromContainer(t testing.TB, opts ...testStoreOption) Config { tcOpts = append(tcOpts, testcontainers.WithCmd(cmds...)) } - tcOpts = append(tcOpts, testcontainers.WithWaitStrategy(waitStrategies...)) - c, err := redis.Run(ctx, img, tcOpts...) testcontainers.CleanupContainer(t, c) require.NoError(t, err)