Skip to content

Commit

Permalink
improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Nov 5, 2024
1 parent 2c789be commit b1e45f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/nagflux/collector/livestatus/CacheBuilder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestDisabledServiceInDowntime(t *testing.T) {
// wait 10 seconds till cache matches
waitUntil := time.Now().Add(10 * time.Second)
for time.Now().Before(waitUntil) {
if cacheBuilder.IsServiceInDowntime("host1", "service1", "1") {
if cacheBuilder.IsServiceInDowntime("host1", "service1", "1") && cacheBuilder.IsServiceInDowntime("host1", "", "2") {
break
}
time.Sleep(100 * time.Millisecond)
Expand Down

0 comments on commit b1e45f6

Please sign in to comment.