Worker: fix Go scheduling issue in sleep command test

Add a 1ms delay in the test loop, so that other goroutines can be scheduled
as well. This should fix #104288.
This commit is contained in:
Sybren A. Stüvel 2024-03-04 14:18:08 +01:00
parent 27cbb2ed0f
commit 16114ee529

View File

@ -64,7 +64,7 @@ loop:
select {
case <-runDone:
break loop
default:
case <-time.After(1 * time.Millisecond):
mocks.clock.Add(timeStepSize)
}
}