summaryrefslogtreecommitdiff
path: root/test/-ext-
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/old_thread_select/test_old_thread_select.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/-ext-/old_thread_select/test_old_thread_select.rb b/test/-ext-/old_thread_select/test_old_thread_select.rb
index a7db7bdf997..c9b55c81eed 100644
--- a/test/-ext-/old_thread_select/test_old_thread_select.rb
+++ b/test/-ext-/old_thread_select/test_old_thread_select.rb
@@ -19,7 +19,7 @@ class TestOldThreadSelect < Test::Unit::TestCase
rc = IO.old_thread_select([r.fileno], nil, nil, 0.001)
diff = Time.now - t0
assert_equal 0, rc
- assert diff >= 0.001, "returned too early"
+ assert_operator diff, :>=, 0.001, "returned too early"
end
end
@@ -59,10 +59,10 @@ class TestOldThreadSelect < Test::Unit::TestCase
end
diff = Time.now - t0
- assert diff >= 1.0, "interrupted or short wait"
+ assert_operator diff, :>=, 1.0, "interrupted or short wait"
assert_equal 0, rc
assert_equal true, thr.value
- assert received, "SIGINT not received"
+ assert_not_equal false, received, "SIGINT not received"
ensure
trap(:INT, "DEFAULT")
end