DEV: waiting for 10ms is hardly enough

tests that test thread behavior and rely on scheduling need to allow for
a wider amount of error margin
This commit is contained in:
Sam Saffron 2019-10-23 16:18:41 +11:00
parent 676c432b0f
commit 950da34826

View File

@ -94,7 +94,7 @@ describe Scheduler::Defer do
it "recovers from a crash / fork" do
s = nil
@defer.stop!
wait_for(10) do
wait_for(1000) do
@defer.stopped?
end
# hack allow thread to die
@ -104,7 +104,7 @@ describe Scheduler::Defer do
s = "good"
end
wait_for(10) do
wait_for(1000) do
s == "good"
end
@ -118,7 +118,7 @@ describe Scheduler::Defer do
s = "good"
end
wait_for(10) do
wait_for(1000) do
s == "good"
end