Skip to content

Commit

Permalink
Extend default wait strategy
Browse files Browse the repository at this point in the history
Thanks @stevenh
  • Loading branch information
smgt committed Sep 17, 2024
1 parent a49be07 commit ab6e670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mongodb/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ func WithReplicaSet(replSetName string) testcontainers.CustomizeRequestOption {
return func(req *testcontainers.GenericContainerRequest) error {
req.Cmd = append(req.Cmd, "--replSet", replSetName)
req.WaitingFor = wait.ForAll(
req.WaitingFor,
wait.ForExec(eval("rs.status().ok")),
wait.ForListeningPort("27017/tcp"),
).WithDeadline(60 * time.Second)
req.LifecycleHooks = append(req.LifecycleHooks, testcontainers.ContainerLifecycleHooks{
PostStarts: []testcontainers.ContainerHook{
Expand Down

0 comments on commit ab6e670

Please sign in to comment.