Manager: improve test stability
In a time-dependent test, wait a little longer to make it more stabler.
This commit is contained in:
parent
4bd6dc64b0
commit
40bfa91018
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user