Skip to content

Commit 1500da0

Browse files
committed
Add delays to updown monitor tests
1 parent 733ba1c commit 1500da0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/monitors/updown/updown-monitor_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func TestRemoveCleanUp(t *testing.T) {
8787
Name: monitor.Name}
8888
UpdownService.Remove(monitorObj)
8989
}
90-
time.Sleep(10 * time.Second)
90+
time.Sleep(20 * time.Second)
9191
monitorSlice = UpdownService.GetAll()
9292

9393
assert.Equal(t, 0, len(monitorSlice))
@@ -103,6 +103,7 @@ func TestGetAllMonitorWhileNoCheckExists(t *testing.T) {
103103
}
104104
UpdownService.Setup(*provider)
105105

106+
time.Sleep(20 * time.Second)
106107
monitorSlice := UpdownService.GetAll()
107108

108109
assert.Equal(t, 0, len(monitorSlice))

0 commit comments

Comments
 (0)