From 88fda023aaa08ddb5b69fe4cb7e071ca23f13d26 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 5 Jun 2014 09:16:57 +0000 Subject: Join a thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/io/nonblock/test_flush.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3