Skip to content

Commit 71a8a6f

Browse files
committed
More test refactoring.
1 parent 50401a5 commit 71a8a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/concurrent/exchanger_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module Concurrent
5252
it 'should block until timeout' do
5353
start = Time.now.to_f
5454
exchanger.exchange(2, 0.1).should be_nil
55-
(Time.now.to_f - start).should > 0.1
55+
(Time.now.to_f - start).should be_within(0.05).of(0.1)
5656
end
5757
end
5858
end

0 commit comments

Comments
 (0)