Skip to content

Commit

Permalink
Fix flaky TestNewInstrumentation test on Windows
Browse files Browse the repository at this point in the history
Fixes #14311
  • Loading branch information
carsonip committed Oct 9, 2024
1 parent 2ef32d0 commit 4db2a7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/beater/beater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4db2a7d

Please sign in to comment.