minor: testing cleanup, suppress mongod startup output in rs tests
This commit is contained in:
parent
76bf4dffe5
commit
f58b56a4ee
|
@ -105,7 +105,6 @@ class ReadPreferenceTest < Test::Unit::TestCase
|
||||||
@rs.kill_primary
|
@rs.kill_primary
|
||||||
assert_equal 2, @coll.find.to_a.length
|
assert_equal 2, @coll.find.to_a.length
|
||||||
rescue_connection_failure do
|
rescue_connection_failure do
|
||||||
puts "@coll.save()"
|
|
||||||
@coll.save({:a => 50}, :safe => {:w => 2, :wtimeout => 10000})
|
@coll.save({:a => 50}, :safe => {:w => 2, :wtimeout => 10000})
|
||||||
end
|
end
|
||||||
@rs.restart_killed_nodes
|
@rs.restart_killed_nodes
|
||||||
|
|
|
@ -95,7 +95,7 @@ class ReplicaSetRefreshTest < Test::Unit::TestCase
|
||||||
num_secondaries = @conn.secondary_pools.length
|
num_secondaries = @conn.secondary_pools.length
|
||||||
old_refresh_version = @conn.refresh_version
|
old_refresh_version = @conn.refresh_version
|
||||||
|
|
||||||
n = @rs.kill_secondary
|
@rs.kill_secondary
|
||||||
sleep(4)
|
sleep(4)
|
||||||
@conn['foo']['bar'].find_one
|
@conn['foo']['bar'].find_one
|
||||||
|
|
||||||
|
|
|
@ -131,6 +131,7 @@ class ReplSetManager
|
||||||
@mongods[n]['start'] += " --dur" if @durable
|
@mongods[n]['start'] += " --dur" if @durable
|
||||||
@mongods[n]['start'] += " --smallfiles" if @smallfiles
|
@mongods[n]['start'] += " --smallfiles" if @smallfiles
|
||||||
@mongods[n]['start'] += " --noprealloc" unless @prealloc
|
@mongods[n]['start'] += " --noprealloc" unless @prealloc
|
||||||
|
@mongods[n]['start'] += "> /dev/null 2>/dev/null"
|
||||||
@mongods[n]['start']
|
@mongods[n]['start']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue