You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a test set up that uses the Docker Compose module
And there are multiple wait strategies
When Up is called
Then a panic occurred with output fatal error: concurrent map writes
This panic can occur when there are multiple wait strategies, for example:
compose, err:=compose.NewDockerComposeWith(
compose.WithStackFiles("some-path"),
compose.StackIdentifier("some-project"))
iferr!=nil {
returnerr
}
stack:=compose.
WaitForService("service_a", wait.NewLogStrategy("some log for service a")).
WaitForService("service_b", wait.NewLogStrategy("some log for service b")).
WaitForService("service_c", wait.NewLogStrategy("some log for service c")).
WaitForService("service_d", wait.NewLogStrategy("some log for service d"))
stack.Up(context.Background(), compose.Wait(true))
The text was updated successfully, but these errors were encountered:
Testcontainers version
0.17.0
Using the latest Testcontainers version?
Yes
Host OS
Darwin
Host arch
amd64
Go version
1.18.10
Docker version
Docker info
What happened?
Given a test set up that uses the Docker Compose module
And there are multiple wait strategies
When Up is called
Then a panic occurred with output
fatal error: concurrent map writes
Relevant log output
The location of the concurrent map write is in dockerCompose.lookupContainer.
The
dockerCompose.containers
map is written to by multiple Go routines launched by dockerCompose.Up.Additional information
This panic can occur when there are multiple wait strategies, for example:
The text was updated successfully, but these errors were encountered: