-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestContainers Hang After First Run #4277
Comments
Not sure if this helps but I am running this with 1.15.3 of LocalStackContainer and MongoDBContainer |
I currently have the same issue on my MacBook Pro (Big Sur 11.6). I am running on Testcontainers |
Happening to me as well. Similar setup to @ShawnRG. I'm running Docker Desktop 4.1.0 (69386) and Docker Engine 20.10.8. |
Hi @ashwin-jacob, which OS are you using? Can we try to triage if the issue is related to the If this does not occur with Everyone else reporting on this issue, please report your OS and your if you use a special architecture (e.g. M1 Macbook). |
The example works fine for me, even in combination with Spring Boot's integration test. An important side-note here is that it failed for me when using a |
This sounds like a bug in Docker, not Testcontainers, as we do not control the transitioning from
This is also a strong signal that something is terribly wrong inside the Docker daemon (deadlock? File system-related issues?) Have you reported it to Docker yet? |
Thanks for the info, I will report an issue with docker as well! |
Are you using |
I am using it with Chrome. |
Update: Now I do not get the issue anoymore, I have tested two previously failing test scenarios and they seem to be working consistently now. |
This issue disappeared for me after a reboot. |
Since this seemed to be some Docker-related issues, I will close this for now. If you have any new information, feel free to update this issue accordingly. |
I added a second TestContainer into our class. On the first run, everything will pass with no problems. The second run will hang on the command to permit Docker to bind. In order for it to work, I have to stop the java process, restart docker, and rerun it. At that point, it will work on the first run but not the second run again.
Here are the logs where I got the issue from:
Here is a snippet of our class
The text was updated successfully, but these errors were encountered: