Skip to content

Commit

Permalink
fixes tests that were failing when they should be passing
Browse files Browse the repository at this point in the history
  • Loading branch information
kmfischer3 committed Apr 2, 2018
1 parent 76e59ad commit 9b69030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trace/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestCreateSpanWithParent(t *testing.T) {

func TestInitializeTracer(t *testing.T) {
opentracing.SetGlobalTracer(nil)
InitializeTracer(&config.Tracing{TracingEnabled: true})
InitializeTracer(&config.Tracing{TracingEnabled: true, CollectorType: "http"})
if opentracing.GlobalTracer() == nil {
t.Error("InitializeTracer set a nil tracer.")
t.FailNow()
Expand All @@ -70,7 +70,7 @@ func TestInitializeTracer(t *testing.T) {

func TestInitializeTracerWhileDisabled(t *testing.T) {
opentracing.SetGlobalTracer(nil)
InitializeTracer(&config.Tracing{TracingEnabled: false})
InitializeTracer(&config.Tracing{TracingEnabled: false, CollectorType: "http"})
if opentracing.GlobalTracer() != nil {
t.Error("InitializeTracer set a tracer while tracing was disabled.")
t.FailNow()
Expand Down

0 comments on commit 9b69030

Please sign in to comment.