Open miparnisari opened 4 months ago
Can you verify this on the branch for https://github.com/testcontainers/testcontainers-go/pull/2664?
@miparnisari we released v0.33.0
Could you please check with that version?
If fixed, I think we can close this one, thanks!
Testcontainers version
v0.32.0
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host arch
ARM
Go version
1.22.5
Docker version
Docker info
What happened?
I attempted an upgrade in our codebase from v0.30.0 to v0.32.0. My codebase uses
And after the upgrade, one of my tests is failing:
This test spins up a container with either Postgres or MySQL, runs some tests with a server that connects to it, and then terminates the container. Nothing crazy. And at the end of the test I have this:
to detect any goroutines that were created but not terminated.
So there is something new in
testcontainers
that is not cleaning properly. The leak happens in both MySQL and Postgres tests. Also it doesn't always occur.Relevant log output
No response
Additional information
If I may make a recommendation: please add
to every test that creates goroutines or HTTP connections. It's proven to be invaluable in our codebase to detect leaks.