mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 07:17:19 +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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user