mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use assert_operator to show clear message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e240f49073
commit
90c33c2198
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue