Manager: improve test stability

In a time-dependent test, wait a little longer to make it more stabler.
This commit is contained in:
Sybren A. Stüvel 2024-09-18 16:40:35 +02:00
parent 4bd6dc64b0
commit 40bfa91018

View File

@ -100,7 +100,7 @@ func TestSummarizeJobStatusesTimeout(t *testing.T) {
// Force a timeout of the context. And yes, even when a nanosecond is quite
// short, it is still necessary to wait.
time.Sleep(2 * time.Nanosecond)
time.Sleep(2 * time.Millisecond)
summary, err := db.SummarizeJobStatuses(subCtx)
assert.ErrorIs(t, err, context.DeadlineExceeded)