Closed bveeni closed 5 months ago
This is very likely an issue with the wait strategy and its configuration. I am pretty sure the wait strategy never indicates readiness (success), and Testcontainers keeps trying it over and over again. Can you please check if the app inside the container really starts on 443
? According to the logs, it starts on 5001
.
Now listening on: https://[::]:5001
If it starts on the right port, make sure the HTTP client is able to verify the certificate.
Thank you for the reply. Configuring with wait strategy worked for me. Cheers
Testcontainers version
3.5.0
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host arch
64-bit operating system, x64-based processor
.NET version
8
Docker version
Docker info
What happened?
I am trying to run test for my web app running in https. When debugging test, my code is able to create image and start container. I am able to access my web app via browser. The problem is once it passes this line
await container.StartAsync();
it get stucked and doesnot go to further code. I couldn't find any relative information regarding this.However I am able to run it for http. Following is for http which works fine and proceed to next code line after start of container.
Here is my code snippet for https, which get stucked after executing code of starting container.
Could you please let me know what might went wrong or anything I missed configuring. Thanks
Relevant log output
No response
Additional information
No response