diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-30 12:42:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-30 12:42:20 +0000 |
commit | e282fc4c06cf5ddf8b14e365b2ba7446dee31c14 (patch) | |
tree | c918b01577db44e32b61307c27b58491bf97778c /test/io/nonblock | |
parent | 735f064df372186ea5724c6042176895b40eaf96 (diff) | |
download | ruby-e282fc4c06cf5ddf8b14e365b2ba7446dee31c14.tar.gz |
timeout larger area.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io/nonblock')
-rw-r--r-- | test/io/nonblock/test_flush.rb | 20 |
1 files changed, 10 insertions, 10 deletions
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) |