mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_thread.rb (test_condvar_timed_wait): use
assert_operator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dbb03fdc96
commit
737907b24a
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Nov 16 06:34:30 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/ruby/test_thread.rb (test_condvar_timed_wait): use
|
||||
assert_operator.
|
||||
|
||||
Tue Nov 15 21:56:25 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/ruby/test_sleep.rb (test_sleep_5sec): 0.1sec tolerance is too
|
||||
|
|
|
@ -186,7 +186,8 @@ class TestThread < Test::Unit::TestCase
|
|||
t1 = Time.now
|
||||
t = t1-t0
|
||||
|
||||
assert_block { timeout*0.9 < t && t < timeout*1.1 }
|
||||
assert_operator(timeout*0.9, :<, t)
|
||||
assert_operator(t, :<, timeout*1.1)
|
||||
assert(locked)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue