diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-15 12:58:37 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-15 12:58:37 +0000 |
commit | 498a6e8a05e77f3d85f45945293f46054565903c (patch) | |
tree | a60e43a9d5e612b39ef222d78c5105202c4e74a9 /test/ruby | |
parent | 3d25acdccc6c6afec0649655859590892b561c9d (diff) | |
download | ruby-498a6e8a05e77f3d85f45945293f46054565903c.tar.gz |
* test/ruby/test_sleep.rb (test_sleep_5sec): 0.1sec tolerance is too
small for busy environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_sleep.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_sleep.rb b/test/ruby/test_sleep.rb index adc4876216..96c38fde5a 100644 --- a/test/ruby/test_sleep.rb +++ b/test/ruby/test_sleep.rb @@ -6,7 +6,8 @@ class TestSleep < Test::Unit::TestCase start = Time.now sleep 5 slept = Time.now-start - assert_in_delta(5.0, slept, 0.1, "[ruby-core:18015]: longer than expected") + assert_operator(5.0, :<=, slept) + assert_operator(slept, :<=, 6.0, "[ruby-core:18015]: longer than expected") ensure GC.enable end |