diff options
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r-- | test/ruby/test_file.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 9462ae597b..974752c853 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -124,7 +124,7 @@ class TestFile < Test::Unit::TestCase q1 = Queue.new q2 = Queue.new - Thread.new do + th = Thread.new do data = '' 64.times do |i| data << i.to_s @@ -142,6 +142,7 @@ class TestFile < Test::Unit::TestCase assert_equal size, f.size q2.push true end + th.join end end |