latency: Listen on localhost:0 instead of :0 in test (#1640)

This commit is contained in:
dfawley
2017-11-01 10:52:07 -07:00
committed by GitHub
parent fb4b2b29e4
commit fc6acc5e5e

View File

@ -187,7 +187,7 @@ func TestListenerAndDialer(t *testing.T) {
}
// Create a real listener and wrap it.
l, err := net.Listen("tcp", ":0")
l, err := net.Listen("tcp", "localhost:0")
if err != nil {
t.Fatalf("Unexpected error creating listener: %v", err)
}