Skip to content

Commit 2f3720b

Browse files
committed
Attempted to fix intermittently failing #timer test.
1 parent bcc6e6c commit 2f3720b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/concurrent/utility/timer_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module Concurrent
2222
Concurrent::timer(0.1){ latch.count_down }
2323
latch.wait(1)
2424
diff = Time.now.to_f - start
25-
expect(diff).to be_within(0.02).of(0.1)
25+
expect(diff).to be > 0.9
26+
expect(diff).to be < 0.5
2627
end
2728

2829
it 'suppresses exceptions thrown by the block' do

0 commit comments

Comments
 (0)