Testcontainers for Go is a Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.
Testcontainers version
main branch
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host arch
amd64
Go version
1.22
Docker version
2024/10/30 15:16:15 github.com/testcontainers/testcontainers-go - Connected to docker: Server Version: 26.1.3 API Version: 1.45 Operating System: Ubuntu 22.04.5 LTS Total Memory: 15981 MB Testcontainers for Go Version: v0.35.0 Resolved Docker Host: unix:///var/run/docker.sock Resolved Docker Socket Path: /var/run/docker.sock Test SessionID: 2ed4739b2fd000082bf90b5f2d746ea8a5ebe937fb89b45ea20338b35b2cd02a Test ProcessID: 5eaf65e5-15b7-46e5-8c1d-94453368ed5b
Docker info
2024/10/30 15:16:15 github.com/testcontainers/testcontainers-go - Connected to docker: Server Version: 26.1.3 API Version: 1.45 Operating System: Ubuntu 22.04.5 LTS Total Memory: 15981 MB Testcontainers for Go Version: v0.35.0 Resolved Docker Host: unix:///var/run/docker.sock Resolved Docker Socket Path: /var/run/docker.sock Test SessionID: 2ed4739b2fd000082bf90b5f2d746ea8a5ebe937fb89b45ea20338b35b2cd02a Test ProcessID: 5eaf65e5-15b7-46e5-8c1d-94453368ed5b
What happened?
I'm seeing a race condition when the reaper tries to log something using Logger.Printf :thinking_face: See https://github.com/testcontainers/testcontainers-go/actions/runs/11596132688/job/32286691494
We do not see it in the CI because it's retrying and it does not happen in successive executions.
Relevant log output
Additional information
No response