Skip to content

Commit 6e5f9bf

Browse files
committed
fix: wait for all does not handle nil waits
1 parent e64edb7 commit 6e5f9bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/azure/azurite/azurite.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom
111111
}
112112
}
113113

114-
genericContainerReq.WaitingFor = wait.ForAll(genericContainerReq.WaitingFor, wait.ForAll(waitingFor...))
114+
if genericContainerReq.WaitingFor != nil {
115+
genericContainerReq.WaitingFor = wait.ForAll(genericContainerReq.WaitingFor, wait.ForAll(waitingFor...))
116+
} else {
117+
genericContainerReq.WaitingFor = wait.ForAll(waitingFor...)
118+
}
115119
}
116120

117121
container, err := testcontainers.GenericContainer(ctx, genericContainerReq)

0 commit comments

Comments
 (0)