We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcc6e6c commit 2f3720bCopy full SHA for 2f3720b
spec/concurrent/utility/timer_spec.rb
@@ -22,7 +22,8 @@ module Concurrent
22
Concurrent::timer(0.1){ latch.count_down }
23
latch.wait(1)
24
diff = Time.now.to_f - start
25
- expect(diff).to be_within(0.02).of(0.1)
+ expect(diff).to be > 0.9
26
+ expect(diff).to be < 0.5
27
end
28
29
it 'suppresses exceptions thrown by the block' do
0 commit comments