summaryrefslogtreecommitdiff
path: root/test/ruby/test_sleep.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-15 12:58:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-15 12:58:37 +0000
commit498a6e8a05e77f3d85f45945293f46054565903c (patch)
treea60e43a9d5e612b39ef222d78c5105202c4e74a9 /test/ruby/test_sleep.rb
parent3d25acdccc6c6afec0649655859590892b561c9d (diff)
* 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/test_sleep.rb')
-rw-r--r--test/ruby/test_sleep.rb3
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