Skip to content

fix: fix panic when getting container logs#1911

Closed
pmalek wants to merge 1 commit intotestcontainers:mainfrom
pmalek:fix-panic-when-getting-container-logs
Closed

fix: fix panic when getting container logs#1911
pmalek wants to merge 1 commit intotestcontainers:mainfrom
pmalek:fix-panic-when-getting-container-logs

Conversation

@pmalek
Copy link
Copy Markdown
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
@netlify
Copy link
Copy Markdown

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
Copy Markdown
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