Skip to content

Commit

Permalink
hopefully fix a rare flake
Browse files Browse the repository at this point in the history
  • Loading branch information
mumbleskates committed Sep 23, 2024
1 parent 5fcdb87 commit 9a15da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safety_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestLimitedGroupCleanup(t *testing.T) {
op(nil) // have mercy and run those ops anyway, just so we get a full count
}
// The channel should get closed!
assert.Equal(t, int64(100), counter)
assert.Equal(t, int64(100), atomic.LoadInt64(&counter))
}

func TestCollectorCleanup(t *testing.T) {
Expand Down

0 comments on commit 9a15da7

Please sign in to comment.