From 375083a085911c6413b4be67af6cfe7d1a39576b Mon Sep 17 00:00:00 2001 From: tensorchen Date: Wed, 6 May 2020 01:50:00 +0800 Subject: [PATCH] Update mockZipkin addr from :0 to 127.0.0.1:0 --- exporters/trace/zipkin/exporter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporters/trace/zipkin/exporter_test.go b/exporters/trace/zipkin/exporter_test.go index 848f38867..861a55efc 100644 --- a/exporters/trace/zipkin/exporter_test.go +++ b/exporters/trace/zipkin/exporter_test.go @@ -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{