diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_thread.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 57e02849b9..0cd20ba1e5 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -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 |