-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
test: racy port creation in port forwarding tests #2688
test: racy port creation in port forwarding tests #2688
Conversation
Fix racy creation of free ports in port forwarding tests which were causing random failures.
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had not experimented this error in the past, but I see the value in using httptest for the random port.
LGTM
Apply PR feedback suggestions to use a single line error check. Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
* main: fix(compose): remove test volumes (#2712) chore(mysql): add missing error check in example (#2707) chore: remove unused params from defaultPreCreateHook (#2714) docs: improve docs for container methods (#2713) chore(registry): disable build log (#2711) chore: remove obsolete compose version (#2710) chore: improve lifecycle errors (#2708) docs: add consistent snippets for network creation (#2703) test: add retry on system error test (#2687) Redpanda Module: Add option for arbitrary bootstrap config (#2666) feat(inbucket): expose POP3 and wait for all ports (#2690) fix(wait): data race in test (#2698) fix(milvus): racy container setup (#2693) fix(mongodb): replica test failures (#2699) test: racy port creation in port forwarding tests (#2688) fix: port forwarding race condition (#2686)
Fix racy creation of free ports in port forwarding tests which were causing random failures.