1
0
Fork 0
mirror of https://github.com/TwiN/gatus.git synced 2024-12-15 17:51:09 +00:00

Increase sleep to give enough time for the goroutine to end its task

This commit is contained in:
TwinProduction 2021-07-16 21:32:53 -04:00 committed by Chris
parent 7cf1750f86
commit bbbfe7f466

View file

@ -85,5 +85,5 @@ func TestAutoSave(t *testing.T) {
go autoSaveStore(ctx, provider, 3*time.Millisecond) go autoSaveStore(ctx, provider, 3*time.Millisecond)
time.Sleep(15 * time.Millisecond) time.Sleep(15 * time.Millisecond)
cancelFunc() cancelFunc()
time.Sleep(10 * time.Millisecond) time.Sleep(50 * time.Millisecond)
} }