Skip to content
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

Add an explicit with_udp_and_tcp helper to test_dns.rb #49

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

KJTsanaktsidis
Copy link
Contributor

This helper tries to bind UDP and TCP sockets to the same port, by retrying the bind if the randomly-assinged UDP port is already taken in TCP. This fixes a flaky test.

See https://github.com/ruby/ruby/actions/runs/8497267556/job/23275642160 for an example of such flake, and https://bugs.ruby-lang.org/issues/20403 for more details.

[Bug #20403]

This helper tries to bind UDP and TCP sockets to the same port, by
retrying the bind if the randomly-assinged UDP port is already taken in
TCP. This fixes a flaky test.

[Bug #20403]
@KJTsanaktsidis KJTsanaktsidis merged commit 4f8b41d into ruby:master Mar 31, 2024
26 checks passed
@KJTsanaktsidis KJTsanaktsidis deleted the ktsanaktsidis/bug_20403 branch March 31, 2024 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant