-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
[Bug]: Issue with Docker Timeout During Testcontainers Integration #1244
Comments
The stack trace does not align with this comment. It indicates that Testcontainers/Docker is failing to pull the image (cannot connect to the Docker registry). Are you using a private registry or a proxy? What image are you trying to pull? Could you try pulling the image manually using the command |
Thanks - I'm using a public registry and the image is sheyenrath/wiremock.net. When I manually pulled the image it was successful but when running the tests, they never complete. |
This sounds very much like a misconfigured wait strategy. If the wait strategy never indicates success, Testcontainers for .NET will keep retrying. What kind of wait strategy are you using? Usually, it helps to debug the wait strategy to determine why it is failing. You can also set a timeout to check whether the issue lies with the wait strategy. For example:
|
Thanks - I added your suggestion for wait strategy and the tests time out. The strange thing is that the tests are running and passing for my colleague so it seems to be a problem with my environment |
As I mentioned, it's probably best to debug the wait strategy (the |
Unfortunately, without further information, I cannot help. I will close the issue for now. If you have additional details that can help us triage the issue, please do not hesitate to reopen it. |
Testcontainers version
3.9.0
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host arch
64-bit
.NET version
8.0
Docker version
Docker info
What happened?
I'm currently facing an issue while running tests using Testcontainers in my .NET project. The test in question is designed to validate an endpoint that should return a 400 status code when provided with an invalid information. However, I'm encountering a Docker-related exception that prevents the test from executing as expected.
The docker container is successfully running, but the tests never complete.
Any suggestions on how to troubleshoot or resolve this problem would be greatly appreciated!
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: