diff --git a/internal/beater/beater_test.go b/internal/beater/beater_test.go index 289ef975303..f7fbdad816e 100644 --- a/internal/beater/beater_test.go +++ b/internal/beater/beater_test.go @@ -279,6 +279,7 @@ func TestNewInstrumentation(t *testing.T) { i, err := newInstrumentation(cfg) require.NoError(t, err) tracer := i.Tracer() + defer tracer.Close() tracer.StartTransaction("name", "type").End() tracer.Flush(nil) assert.Equal(t, map[string]string{"k1": "val", "k2": "new val"}, <-labels)