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:
parent
27cbb2ed0f
commit
16114ee529
@ -64,7 +64,7 @@ loop:
|
||||
select {
|
||||
case <-runDone:
|
||||
break loop
|
||||
default:
|
||||
case <-time.After(1 * time.Millisecond):
|
||||
mocks.clock.Add(timeStepSize)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user