Skip to content

Commit

Permalink
Added test for CreateCollector.
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhartzheim committed Mar 27, 2018
1 parent 7c3b838 commit bd0d37c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions trace/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ import (

const testServiceName = "TEST-SERVICE"

func TestCreateCollectorHTTP(t *testing.T) {
if CreateCollector("http", "", "") == nil {
t.Error("CreateCollector returned nil value.")
t.FailNow()
}
}

func TestCreateSpanNoGlobalTracer(t *testing.T) {
opentracing.SetGlobalTracer(nil)
req, _ := http.NewRequest("GET", "http://example.com", nil)
Expand Down

0 comments on commit bd0d37c

Please sign in to comment.