Skip to content

Commit

Permalink
Increase timeout on usage event check (gravitational#31762)
Browse files Browse the repository at this point in the history
  • Loading branch information
atburke authored Sep 13, 2023
1 parent 70238be commit 4f37bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/srv/discovery/discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1493,11 +1493,11 @@ func TestDiscoveryDatabase(t *testing.T) {
if tc.wantEvents > 0 {
require.Eventually(t, func() bool {
return reporter.EventsCount() == tc.wantEvents
}, 100*time.Millisecond, 10*time.Millisecond)
}, time.Second, 100*time.Millisecond)
} else {
require.Never(t, func() bool {
return reporter.EventsCount() != 0
}, 100*time.Millisecond, 10*time.Millisecond)
}, time.Second, 100*time.Millisecond)
}
})
}
Expand Down

0 comments on commit 4f37bfc

Please sign in to comment.