1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-03 22:52:30 +02:00

Update mockZipkin addr from :0 to 127.0.0.1:0

This commit is contained in:
tensorchen 2020-05-06 01:50:00 +08:00
parent 7026089a0e
commit 375083a085

View File

@ -51,7 +51,7 @@ func startMockZipkinCollector(t *testing.T) *mockZipkinCollector {
t: t,
closing: false,
}
listener, err := net.Listen("tcp", ":0")
listener, err := net.Listen("tcp", "127.0.0.1:0")
require.NoError(t, err)
collector.url = fmt.Sprintf("http://%s", listener.Addr().String())
server := &http.Server{