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)