Package list golang-github-go-kit-kit / f8893ab
Fix for OpenTracing breaking API change Peter Bourgon 5 years ago
3 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
2222 t.Fatal(err)
2323 }
2424
25 finishedSpans := tracer.GetFinishedSpans()
25 finishedSpans := tracer.FinishedSpans()
2626 if want, have := 1, len(finishedSpans); want != have {
2727 t.Fatalf("Want %v span(s), found %v", want, have)
2828 }
5050 }
5151
5252 // tracedEndpoint created a new Span.
53 finishedSpans := tracer.GetFinishedSpans()
53 finishedSpans := tracer.FinishedSpans()
5454 if want, have := 1, len(finishedSpans); want != have {
5555 t.Fatalf("Want %v span(s), found %v", want, have)
5656 }
7575 }
7676
7777 // tracedEndpoint created a new Span.
78 finishedSpans := tracer.GetFinishedSpans()
78 finishedSpans := tracer.FinishedSpans()
7979 if want, have := 1, len(finishedSpans); want != have {
8080 t.Fatalf("Want %v span(s), found %v", want, have)
8181 }
104104 }
105105
106106 // tracedEndpoint created a new Span.
107 finishedSpans := tracer.GetFinishedSpans()
107 finishedSpans := tracer.FinishedSpans()
108108 if want, have := 1, len(finishedSpans); want != have {
109109 t.Fatalf("Want %v span(s), found %v", want, have)
110110 }
3333 }
3434
3535 // No spans should have finished yet.
36 finishedSpans := tracer.GetFinishedSpans()
36 finishedSpans := tracer.FinishedSpans()
3737 if want, have := 0, len(finishedSpans); want != have {
3838 t.Errorf("Want %v span(s), found %v", want, have)
3939 }
3333 }
3434
3535 // No spans should have finished yet.
36 finishedSpans := tracer.GetFinishedSpans()
36 finishedSpans := tracer.FinishedSpans()
3737 if want, have := 0, len(finishedSpans); want != have {
3838 t.Errorf("Want %v span(s), found %v", want, have)
3939 }