fix another hot lop in tests
Found another test spinlock. Slow it down to prevent it from blocking the runtime scheduler.
This commit is contained in:
parent
c4b46081f6
commit
7c9863ccb0
|
@ -1740,6 +1740,7 @@ func TestContext2Apply_cancel(t *testing.T) {
|
||||||
if ctx.sh.Stopped() {
|
if ctx.sh.Stopped() {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
time.Sleep(10 * time.Millisecond)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue