From 737907b24abacfe6ebed79b33f9a8ba8ca3d4b15 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 15 Nov 2011 21:35:09 +0000 Subject: * 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 --- test/ruby/test_thread.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/ruby') 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 -- cgit v1.2.3