Fix tracing tests by replacing test.com endpoint with httpbin.org (#952)
Márk Sági-Kazár authored 4 years ago
GitHub committed 4 years ago
22 | 22 | var ( |
23 | 23 | err error |
24 | 24 | rec = &recordingExporter{} |
25 | rURL, _ = url.Parse("http://test.com/dummy/path") | |
25 | rURL, _ = url.Parse("https://httpbin.org/get") | |
26 | 26 | ) |
27 | 27 | |
28 | 28 | trace.RegisterExporter(rec) |
71 | 71 | t.Errorf("incorrect span name, want %s, have %s", want, have) |
72 | 72 | } |
73 | 73 | |
74 | if want, have := "GET /dummy/path", span.Name; want != have && tr.name == "" { | |
74 | if want, have := "GET /get", span.Name; want != have && tr.name == "" { | |
75 | 75 | t.Errorf("incorrect span name, want %s, have %s", want, have) |
76 | 76 | } |
77 | 77 |