mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Loosen the criteria for timing checks of Kernel#sleep
The test was too flaky
This commit is contained in:
parent
342455e56f
commit
7c893c8d6b
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ describe "Kernel#sleep" do
|
||||||
|
|
||||||
actual_duration = end_time - start_time
|
actual_duration = end_time - start_time
|
||||||
(actual_duration > 0.01).should == true # 100 * 0.0001 => 0.01
|
(actual_duration > 0.01).should == true # 100 * 0.0001 => 0.01
|
||||||
(actual_duration < 0.03).should == true
|
(actual_duration < 1).should == true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue