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 50401a5 commit 71a8a6fCopy full SHA for 71a8a6f
spec/concurrent/exchanger_spec.rb
@@ -52,7 +52,7 @@ module Concurrent
52
it 'should block until timeout' do
53
start = Time.now.to_f
54
exchanger.exchange(2, 0.1).should be_nil
55
- (Time.now.to_f - start).should > 0.1
+ (Time.now.to_f - start).should be_within(0.05).of(0.1)
56
end
57
58
0 commit comments