minor: testing cleanup, suppress mongod startup output in rs tests

This commit is contained in:
Tyler Brock 2012-04-04 15:10:11 -04:00
parent 76bf4dffe5
commit f58b56a4ee
3 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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