Skip to content

Commit

Permalink
Fix tracing tests by replacing test.com endpoint with httpbin.org (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Feb 1, 2020
1 parent 5d467ee commit 7ea682b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tracing/opencensus/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion tracing/zipkin/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7ea682b

Please sign in to comment.