diff --git a/tracing/opencensus/http_test.go b/tracing/opencensus/http_test.go index 37d592e57..78ff7d587 100644 --- a/tracing/opencensus/http_test.go +++ b/tracing/opencensus/http_test.go @@ -23,7 +23,7 @@ func TestHTTPClientTrace(t *testing.T) { var ( err error rec = &recordingExporter{} - rURL, _ = url.Parse("http://test.com/dummy/path") + rURL, _ = url.Parse("https://httpbin.org/get") ) trace.RegisterExporter(rec) @@ -72,7 +72,7 @@ func TestHTTPClientTrace(t *testing.T) { t.Errorf("incorrect span name, want %s, have %s", want, have) } - if want, have := "GET /dummy/path", span.Name; want != have && tr.name == "" { + if want, have := "GET /get", span.Name; want != have && tr.name == "" { t.Errorf("incorrect span name, want %s, have %s", want, have) } diff --git a/tracing/zipkin/http_test.go b/tracing/zipkin/http_test.go index c1164a7fd..6d42144f8 100644 --- a/tracing/zipkin/http_test.go +++ b/tracing/zipkin/http_test.go @@ -33,7 +33,7 @@ func TestHTTPClientTracePropagatesParentSpan(t *testing.T) { tr, _ := zipkin.NewTracer(rec) - rURL, _ := url.Parse("http://test.com") + rURL, _ := url.Parse("https://httpbin.org/get") clientTracer := zipkinkit.HTTPClientTrace(tr) ep := kithttp.NewClient(