diff --git a/test/replica_sets/read_preference_test.rb b/test/replica_sets/read_preference_test.rb index 22eef8b..4596571 100644 --- a/test/replica_sets/read_preference_test.rb +++ b/test/replica_sets/read_preference_test.rb @@ -105,7 +105,6 @@ class ReadPreferenceTest < Test::Unit::TestCase @rs.kill_primary assert_equal 2, @coll.find.to_a.length rescue_connection_failure do - puts "@coll.save()" @coll.save({:a => 50}, :safe => {:w => 2, :wtimeout => 10000}) end @rs.restart_killed_nodes diff --git a/test/replica_sets/refresh_test.rb b/test/replica_sets/refresh_test.rb index 574b7ad..8c32f40 100644 --- a/test/replica_sets/refresh_test.rb +++ b/test/replica_sets/refresh_test.rb @@ -95,7 +95,7 @@ class ReplicaSetRefreshTest < Test::Unit::TestCase num_secondaries = @conn.secondary_pools.length old_refresh_version = @conn.refresh_version - n = @rs.kill_secondary + @rs.kill_secondary sleep(4) @conn['foo']['bar'].find_one diff --git a/test/tools/repl_set_manager.rb b/test/tools/repl_set_manager.rb index f145de9..4f11be5 100644 --- a/test/tools/repl_set_manager.rb +++ b/test/tools/repl_set_manager.rb @@ -131,6 +131,7 @@ class ReplSetManager @mongods[n]['start'] += " --dur" if @durable @mongods[n]['start'] += " --smallfiles" if @smallfiles @mongods[n]['start'] += " --noprealloc" unless @prealloc + @mongods[n]['start'] += "> /dev/null 2>/dev/null" @mongods[n]['start'] end