summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/io/nonblock/test_flush.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/io/nonblock/test_flush.rb b/test/io/nonblock/test_flush.rb
index 8c93c814a3..ab54205174 100644
--- a/test/io/nonblock/test_flush.rb
+++ b/test/io/nonblock/test_flush.rb
@@ -29,7 +29,7 @@ class TestIONonblock < Test::Unit::TestCase
w << "a" * 4096
result = ""
timeout(10) {
- Thread.new {
+ t0 = Thread.new {
Thread.pass
w.close
}
@@ -44,6 +44,7 @@ class TestIONonblock < Test::Unit::TestCase
# ignore [ruby-dev:35638]
end
assert_nothing_raised {t.join}
+ t0.join
}
assert_equal(4097, result.size)
true