Skip to content
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

fix: fix panic when getting container logs #1911

Conversation

pmalek
Copy link
Contributor

@pmalek pmalek commented Nov 11, 2023

What does this PR do?

This PR fixes a panic when testcontainers cannot get container logs.

Appropriate tests have been added in docker_test.go

Why is it important?

Related issues

Should fix #946

How to test this PR

go test -v -run TestLogs .

Follow-ups

Consider changing the types used in DockerContainer as suggested in #1777 (comment)

@pmalek pmalek requested a review from a team as a code owner November 11, 2023 14:38
Copy link

netlify bot commented Nov 11, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 1f20eaf
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/654fac77b13bd100085ac29f
😎 Deploy Preview https://deploy-preview-1911--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mdelapenya
Copy link
Member

This PR has been superseded by #1971, please take a look for the changes, and thank you very much for your contribution. Even if not merged, it helped to bring light on the log consumption topic 🙇

@mdelapenya mdelapenya closed this Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: log producer panics if no logs are produced when using podman
2 participants