Skip to content

Commit

Permalink
Use assert_operator to show clear message.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Sep 6, 2011
1 parent e240f49 commit 90c33c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/-ext-/old_thread_select/test_old_thread_select.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_old_select_read_timeout
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

Expand Down Expand Up @@ -59,10 +59,10 @@ def test_old_select_signal_safe
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
Expand Down

0 comments on commit 90c33c2

Please sign in to comment.