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:
James Bardin 2017-03-15 12:02:28 -04:00
parent c4b46081f6
commit 7c9863ccb0
1 changed files with 1 additions and 0 deletions

View File

@ -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)
} }
} }