spec/async/clock_spec.rb in async-1.24.2 vs spec/async/clock_spec.rb in async-1.25.0
- old
+ new
@@ -26,10 +26,10 @@
it "can measure durations" do
duration = Async::Clock.measure do
sleep 0.1
end
- expect(duration).to be_within(0.01).of(0.1)
+ expect(duration).to be_within(0.01 * Q).of(0.1)
end
it "can get current offset" do
expect(Async::Clock.now).to be_kind_of Float
end