Skip to content

Commit

Permalink
test: close tracer once test ends
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Lopez Rubio <[email protected]>
  • Loading branch information
kruskall and marclop authored Jul 12, 2023
1 parent 19af712 commit 3e41038
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions span_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3e41038

Please sign in to comment.