Codebase list golang-github-go-kit-kit / 7ea682b
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
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2222 var (
2323 err error
2424 rec = &recordingExporter{}
25 rURL, _ = url.Parse("http://test.com/dummy/path")
25 rURL, _ = url.Parse("https://httpbin.org/get")
2626 )
2727
2828 trace.RegisterExporter(rec)
7171 t.Errorf("incorrect span name, want %s, have %s", want, have)
7272 }
7373
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 == "" {
7575 t.Errorf("incorrect span name, want %s, have %s", want, have)
7676 }
7777
3232
3333 tr, _ := zipkin.NewTracer(rec)
3434
35 rURL, _ := url.Parse("http://test.com")
35 rURL, _ := url.Parse("https://httpbin.org/get")
3636
3737 clientTracer := zipkinkit.HTTPClientTrace(tr)
3838 ep := kithttp.NewClient(