diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/fiber/test_sleep.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiber/test_sleep.rb b/test/fiber/test_sleep.rb index 4dadbb58bf..84e9d27550 100644 --- a/test/fiber/test_sleep.rb +++ b/test/fiber/test_sleep.rb @@ -14,7 +14,7 @@ class TestFiberSleep < Test::Unit::TestCase 5.times do |i| Fiber do - assert(sleep(i/100.0) >= 0) + assert_operator sleep(i/100.0), :>=, 0 items << i end end @@ -41,7 +41,7 @@ class TestFiberSleep < Test::Unit::TestCase thread.join - assert(seconds >= 2, "actual: %p" % seconds) + assert_operator seconds, :>=, 2, "actual: %p" % seconds end end |