diff options
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_thread.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index 2494cccbf3..19799ab4d3 100644 --- a/bootstraptest/test_thread.rb +++ b/bootstraptest/test_thread.rb @@ -380,7 +380,9 @@ assert_equal 'ok', %q{ assert_equal 'ok', %q{ begin - 10000.times { Thread.new(true) {|x| x == false } } + 100.times{ + (1..100).map{ Thread.new(true) {|x| x == false } }.each{|th| th.join} + } rescue NoMemoryError, StandardError end :ok |