Skip to content

fix: Retrieve logs since CreatedTime for UntilMessageIsLogged wait strategy#1384

Merged
HofmeisterAn merged 1 commit into
testcontainers:developfrom
0xced:fix-UntilMessageIsLogged
Feb 28, 2025
Merged

fix: Retrieve logs since CreatedTime for UntilMessageIsLogged wait strategy#1384
HofmeisterAn merged 1 commit into
testcontainers:developfrom
0xced:fix-UntilMessageIsLogged

Conversation

@0xced

@0xced 0xced commented Feb 26, 2025

Copy link
Copy Markdown
Contributor

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
@netlify

netlify Bot commented Feb 26, 2025

Copy link
Copy Markdown

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

@HofmeisterAn HofmeisterAn left a comment

Copy link
Copy Markdown
Collaborator

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
@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