Skip to content

Commit

Permalink
contrib/miekg/dns: resolve flaky test in TestExchange*
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahkm committed Dec 17, 2024
1 parent cd21985 commit c3fc27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/miekg/dns/dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func assertClientSpan(t *testing.T, s mocktracer.Span) {
}

func getFreeAddr(t *testing.T) net.Addr {
li, err := net.Listen("tcp", "127.0.0.1:0")
li, err := net.Listen("tcp", "127.0.0.1:2020")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit c3fc27c

Please sign in to comment.