Loosen the criteria for timing checks of Kernel#sleep

The test was too flaky
This commit is contained in:
Yusuke Endoh 2024-11-07 10:18:48 +09:00
parent 342455e56f
commit 7c893c8d6b

View file

@ -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