summaryrefslogtreecommitdiffstats
path: root/test/io
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
commit2637bd3a4a65e1e87d8c9ed5feb56e784d70d9fb (patch)
treec918b01577db44e32b61307c27b58491bf97778c /test/io
parent7c7fb904a95e9db5afafbe309425e2ba21c2adae (diff)
downloadruby-2637bd3a4a65e1e87d8c9ed5feb56e784d70d9fb.tar.gz
ruby-2637bd3a4a65e1e87d8c9ed5feb56e784d70d9fb.tar.xz
ruby-2637bd3a4a65e1e87d8c9ed5feb56e784d70d9fb.zip
timeout larger area.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io')
-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 249b2c913..67ac1fcaa 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)