From e282fc4c06cf5ddf8b14e365b2ba7446dee31c14 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 30 Dec 2007 12:42:20 +0000 Subject: timeout larger area. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/io/nonblock/test_flush.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test/io/nonblock/test_flush.rb') diff --git a/test/io/nonblock/test_flush.rb b/test/io/nonblock/test_flush.rb index 249b2c913b..67ac1fcaa4 100644 --- a/test/io/nonblock/test_flush.rb +++ b/test/io/nonblock/test_flush.rb @@ -14,18 +14,18 @@ class TestIONonblock < Test::Unit::TestCase w << "b" w.flush w << "a" * 4096 - Thread.new { - Thread.pass - w.close - } result = "" - t = Thread.new { - while (Thread.pass; s = r.read(4096)) - result << s - end - } - w.flush # assert_raise(IOError, "[ruby-dev:24985]") {w.flush} timeout(10) { + Thread.new { + Thread.pass + w.close + } + t = Thread.new { + while (Thread.pass; s = r.read(4096)) + result << s + end + } + w.flush # assert_raise(IOError, "[ruby-dev:24985]") {w.flush} assert_nothing_raised {t.join} } assert_equal(4097, result.size) -- cgit v1.2.3