diff --git a/collector_test.go b/collector_test.go index 3451ca9fb..29517fbc9 100644 --- a/collector_test.go +++ b/collector_test.go @@ -36,7 +36,7 @@ func Test_Collector_LegacySensor(t *testing.T) { s := c.LegacySensor() defer instana.ShutdownCollector() - assert.NotNil(t, getInstanaCollector().LegacySensor()) + assert.NotNil(t, c.LegacySensor()) h := instana.TracingHandlerFunc(s, "/{action}", func(w http.ResponseWriter, req *http.Request) { fmt.Fprintln(w, "Ok")