Skip to content

Commit c3fc27c

Browse files
committed
contrib/miekg/dns: resolve flaky test in TestExchange*
1 parent cd21985 commit c3fc27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/miekg/dns/dns_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func assertClientSpan(t *testing.T, s mocktracer.Span) {
191191
}
192192

193193
func getFreeAddr(t *testing.T) net.Addr {
194-
li, err := net.Listen("tcp", "127.0.0.1:0")
194+
li, err := net.Listen("tcp", "127.0.0.1:2020")
195195
if err != nil {
196196
t.Fatal(err)
197197
}

0 commit comments

Comments
 (0)