summaryrefslogtreecommitdiff
path: root/test/io/nonblock/test_flush.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 12:42:20 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 12:42:20 +0000
commite282fc4c06cf5ddf8b14e365b2ba7446dee31c14 (patch)
treec918b01577db44e32b61307c27b58491bf97778c /test/io/nonblock/test_flush.rb
parent735f064df372186ea5724c6042176895b40eaf96 (diff)
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/test_flush.rb')
-rw-r--r--test/io/nonblock/test_flush.rb20
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)