-
-
Notifications
You must be signed in to change notification settings - Fork 499
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]: can not get logs from container which is dead or marked for removal #606
Comments
I face the same issue and agree to the suggestion by @bgranvea . Atm it happens sometimes that when a test case is done and the according container is closed this piece of code detects that the connection to the container was lost and tries to reconnect. |
The bad thing with this behavior is that it makes tests flaky as they sometimes fail without any relevant reason. |
Reopening for #1164 |
@bgranvea could you try with the latest release? There were a few improvements in the log consumer code that could have resolved this. |
@bgranvea I'm closing this issue as stale. Please reopen it if you still experience it with the latest releases. Thanks! |
Testcontainers version
0.15.0
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
amd64
Go Version
1.19
Docker version
Docker info
What happened?
I'm starting a container and waiting for the end of its execution (it is the expected behavior). I also have a log consumer to display what is going on.
Sometimes the test fails with this error:
I think there is a problem with the way the log producer is handling a container that terminates:
I suggest to log a warning and stop log producer instead of calling panic.
Relevant log output
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: