Skip to content

Fix issue with repeatable host port resolve in WaitForHttp#64

Merged
shyim merged 1 commit intotestcontainers:mainfrom
berejant:fix/port-resolve-wait-port
Mar 12, 2026
Merged

Fix issue with repeatable host port resolve in WaitForHttp#64
shyim merged 1 commit intotestcontainers:mainfrom
berejant:fix/port-resolve-wait-port

Conversation

@berejant
Copy link
Contributor

Fix incorrect logic which comes from commit: e4aee91

Method should be idempotency: once you resolve hostPort using internal containerPort - don't do this action again.
Also internal container port != external port at host NAT.

Copy link
Collaborator

@shyim shyim left a comment

Choose a reason for hiding this comment

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

Thank you!

@shyim shyim merged commit 266f0be into testcontainers:main Mar 12, 2026
3 checks passed
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.

2 participants