Skip to content

Commit c2316a2

Browse files
committed
Attempted to fix intermittently failing #timer test.
1 parent 827999a commit c2316a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* C extension for MRI have been extracted into the `concurrent-ruby-ext` companion gem.
44
Please see the README for more detail.
55
* Better variable isolation in `Promise` and `Future` via an `:args` option
6+
* Continued to update intermittently failing tests
67

78
## Current Release v0.7.2 (24 January 2015)
89

spec/concurrent/utility/timer_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ 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 > 0.1
26-
expect(diff).to be < 0.5
25+
expect(diff).to be_within(0.02).of(0.1)
2726
end
2827

2928
it 'suppresses exceptions thrown by the block' do

0 commit comments

Comments
 (0)