diff --git a/span_test.go b/span_test.go index 0ee2461e5..029eb2c83 100644 --- a/span_test.go +++ b/span_test.go @@ -1048,6 +1048,7 @@ func TestDroppedSpanParentConcurrent(t *testing.T) { // This test verifies there aren't any deadlocks on calling // span.End(), Parent.End() and tx.End(). tracer := apmtest.NewRecordingTracer() + defer tracer.Close() tracer.SetExitSpanMinDuration(0) tx := tracer.StartTransaction("name", "type")