Skip to content

Commit 9e4080b

Browse files
committed
fix: improve Redis cluster setup reliability and test coverage
- Add a wait condition for the Redis cluster setup to ensure it waits for the log message "Sending CLUSTER MEET messages to join the cluster" Signed-off-by: appleboy <[email protected]>
1 parent df83ec4 commit 9e4080b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redis_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func setupRedisCluserContainer(ctx context.Context, t *testing.T) (testcontainer
4444
"6383/tcp",
4545
"6384/tcp",
4646
},
47+
WaitingFor: wait.ForLog("Sending CLUSTER MEET messages to join the cluster"),
4748
}
4849
redisC, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
4950
ContainerRequest: req,

0 commit comments

Comments
 (0)