Skip to content

Wait for ports to be bound when container restarts - #1087

Merged
cristianrgreco merged 7 commits into
mainfrom
fix-wait-for-bound-ports-container-restart
Jul 23, 2025
Merged

Wait for ports to be bound when container restarts#1087
cristianrgreco merged 7 commits into
mainfrom
fix-wait-for-bound-ports-container-restart

Conversation

@cristianrgreco

@cristianrgreco cristianrgreco commented Jul 22, 2025

Copy link
Copy Markdown
Collaborator

Relates to #1032, this is missing for container restarts, which currently work intermittently on Macs.

Also includes a refactor where we don't need to provide exposedPorts from the container create options, we simply use the ones available in the inspect result. This makes the API simpler and usage within the StartedTestContainer possible.

@cristianrgreco cristianrgreco added bug Something isn't working patch Backward compatible bug fix labels Jul 22, 2025
@netlify

netlify Bot commented Jul 22, 2025

Copy link
Copy Markdown

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 9c51440
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-node/deploys/6880a6af8540540008051b27
😎 Deploy Preview https://deploy-preview-1087--testcontainers-node.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.

@cristianrgreco
cristianrgreco merged commit c9c2b36 into main Jul 23, 2025
316 checks passed
@cristianrgreco
cristianrgreco deleted the fix-wait-for-bound-ports-container-restart branch July 23, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch Backward compatible bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant