test/threading_test.rb in mongo-1.6.1 vs test/threading_test.rb in mongo-1.6.2

- old
+ new

@@ -2,11 +2,11 @@ class TestThreading < Test::Unit::TestCase include Mongo - @@con = standard_connection(:pool_size => 10, :timeout => 30) + @@con = standard_connection(:pool_size => 10, :pool_timeout => 30) @@db = @@con[MONGO_TEST_DB] @@coll = @@db.collection('thread-test-collection') def set_up_safe_data @@db.drop_collection('duplicate') @@ -71,10 +71,10 @@ def test_threading @@coll.drop @@coll = @@db.collection('thread-test-collection') 1000.times do |i| - @@coll.insert("x" => i) + @@coll.insert("x" => i, :safe => true) end threads = [] 10.times do |i|