Skip to content

Commit

Permalink
test(rawk8seventsreceiver): fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Świątek committed Feb 1, 2023
1 parent 8ee4826 commit 82f30d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/receiver/rawk8seventsreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ func TestProcessEventE2E(t *testing.T) {
assert.NoError(t, err)
listWatch.Add(getEvent())
assert.Eventually(t, func() bool {
return assert.Equal(t, 1, sink.LogRecordCount())
}, time.Second, time.Millisecond)
return sink.LogRecordCount() == 1
}, time.Second, time.Millisecond, "expected one event, got 0")

err = r.Shutdown(ctx)
assert.NoError(t, err)
Expand Down

0 comments on commit 82f30d8

Please sign in to comment.