From 4530adce49290cbd8914e5c4e4caf36ae122ecc2 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Fri, 22 Jan 2010 11:52:41 -0500 Subject: [PATCH] minor: adjusted pooled threading test for windows --- test/threading/test_threading_large_pool.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/threading/test_threading_large_pool.rb b/test/threading/test_threading_large_pool.rb index a1a51ad..e3b2a37 100644 --- a/test/threading/test_threading_large_pool.rb +++ b/test/threading/test_threading_large_pool.rb @@ -25,7 +25,7 @@ class TestThreadingLargePool < Test::Unit::TestCase def test_safe_update set_up_safe_data threads = [] - 1000.times do |i| + 300.times do |i| threads[i] = Thread.new do if i % 2 == 0 assert_raise Mongo::OperationFailure do @@ -37,7 +37,7 @@ class TestThreadingLargePool < Test::Unit::TestCase end end - 1000.times do |i| + 300.times do |i| threads[i].join end end @@ -45,7 +45,7 @@ class TestThreadingLargePool < Test::Unit::TestCase def test_safe_insert set_up_safe_data threads = [] - 1000.times do |i| + 300.times do |i| threads[i] = Thread.new do if i % 2 == 0 assert_raise Mongo::OperationFailure do @@ -57,7 +57,7 @@ class TestThreadingLargePool < Test::Unit::TestCase end end - 1000.times do |i| + 300.times do |i| threads[i].join end end