diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-04-29 19:11:42 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-04-29 21:01:01 +0000 |
commit | d0f40416ce43a9148a4a2f397f6bc606a39688b2 (patch) | |
tree | fa0c0fdfa2377a949338f5dbc834017163b9d31c | |
parent | bb70a4e003997e6eceea0d03cd941a46ec165f82 (diff) | |
download | sleepy_penguin-d0f40416ce43a9148a4a2f397f6bc606a39688b2.tar.gz |
This test failed on overloaded systems (and may still fail) Unfortunately timers are hard to test as system latency must be taken into account.
-rw-r--r-- | test/test_timerfd.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_timerfd.rb b/test/test_timerfd.rb index e8dc321..81aa6d3 100644 --- a/test/test_timerfd.rb +++ b/test/test_timerfd.rb @@ -65,9 +65,9 @@ class TestTimerFD < Test::Unit::TestCase def test_expirations_nonblock tfd = TimerFD.new(:MONOTONIC) - assert_equal([0, 0], tfd.settime(0, 0, 0.01)) + assert_equal([0, 0], tfd.settime(0, 0, 0.05)) assert_nil tfd.expirations(true) - sleep 0.01 + sleep 0.05 assert_equal 1, tfd.expirations end end if defined?(SleepyPenguin::TimerFD) |