Skip to content

fix: Remove timeout that kills PID 1 when stopping a container#1481

Merged
HofmeisterAn merged 1 commit intodevelopfrom
bugfix/remove-time-to-kill-container
Jul 9, 2025
Merged

fix: Remove timeout that kills PID 1 when stopping a container#1481
HofmeisterAn merged 1 commit intodevelopfrom
bugfix/remove-time-to-kill-container

Conversation

@HofmeisterAn
Copy link
Collaborator

What does this PR do?

This PR removes the WaitBeforeKillSeconds timeout that was used to kill PID 1 when stopping the container. It was a leftover from the early implementation of Testcontainers. Using a fixed timeout isn't ideal, as it can vary depending on the environment. If we still need this functionality, we should offer an overload that lets developers pass a custom timeout as an argument.

Why is it important?

I believe this is why we're seeing flaky WebDriver tests and why the video isn't being fully written by the FFmpeg container.

Related issues

-

@HofmeisterAn HofmeisterAn added the bug Something isn't working label Jul 9, 2025
@netlify
Copy link

netlify bot commented Jul 9, 2025

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 2d0b00b
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-dotnet/deploys/686e8691f9191d0008b561db
😎 Deploy Preview https://deploy-preview-1481--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 project configuration.

@HofmeisterAn HofmeisterAn merged commit 94abb4a into develop Jul 9, 2025
137 checks passed
@HofmeisterAn HofmeisterAn deleted the bugfix/remove-time-to-kill-container branch July 9, 2025 17:10
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.

1 participant