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: Retrieve logs since CreatedTime for UntilMessageIsLogged wait strategy #1384

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

0xced
Copy link
Contributor

@0xced 0xced commented Feb 26, 2025

What does this PR do?

This pull request retrieves logs since CreatedTime for the UntilMessageIsLogged wait strategy to ensure that logs from the previous run are ignored and only logs from the current run are processed.

Why is it important?

This is required for reused containers since old logs (from previous runs) are still available.

Related issues

Fixes #1383

How to test this PR

See sample program in #1383

Retrieve logs since `CreatedTime` to ensure that logs from the previous run are ignored and only logs from the current run are processed.

Fixes testcontainers#1383
Copy link

netlify bot commented Feb 26, 2025

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 63a1b4c
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/67bf9e34eb78e00008e8f73b
😎 Deploy Preview https://deploy-preview-1384--testcontainers-dotnet.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.

@HofmeisterAn HofmeisterAn changed the title Fix UntilMessageIsLogged implementation fix: Retrieve logs since CreatedTime for UntilMessageIsLogged wait strategy Feb 28, 2025
@HofmeisterAn HofmeisterAn added the bug Something isn't working label Feb 28, 2025
Copy link
Collaborator

@HofmeisterAn HofmeisterAn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@HofmeisterAn HofmeisterAn merged commit fc47836 into testcontainers:develop Feb 28, 2025
66 checks passed
@0xced 0xced deleted the fix-UntilMessageIsLogged branch February 28, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: The UntilMessageIsLogged wait strategy is incompatible with the reuse feature
2 participants