mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 07:30:16 +08:00
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
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user