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:
parent
676c432b0f
commit
950da34826
|
@ -94,7 +94,7 @@ describe Scheduler::Defer do
|
||||||
it "recovers from a crash / fork" do
|
it "recovers from a crash / fork" do
|
||||||
s = nil
|
s = nil
|
||||||
@defer.stop!
|
@defer.stop!
|
||||||
wait_for(10) do
|
wait_for(1000) do
|
||||||
@defer.stopped?
|
@defer.stopped?
|
||||||
end
|
end
|
||||||
# hack allow thread to die
|
# hack allow thread to die
|
||||||
|
@ -104,7 +104,7 @@ describe Scheduler::Defer do
|
||||||
s = "good"
|
s = "good"
|
||||||
end
|
end
|
||||||
|
|
||||||
wait_for(10) do
|
wait_for(1000) do
|
||||||
s == "good"
|
s == "good"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ describe Scheduler::Defer do
|
||||||
s = "good"
|
s = "good"
|
||||||
end
|
end
|
||||||
|
|
||||||
wait_for(10) do
|
wait_for(1000) do
|
||||||
s == "good"
|
s == "good"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue