minor: test fix for legacy mongo

This commit is contained in:
Tyler Brock 2012-04-04 19:10:02 -04:00
parent d42eee278b
commit b2a1841f9c
2 changed files with 8 additions and 6 deletions

View File

@ -10,7 +10,6 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase
end
def teardown
@rs.restart_killed_nodes
@conn.close if @conn
end
@ -45,9 +44,12 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase
end
end
rescue_connection_failure do
@rs.add_node
begin
threads.each {|t| t.join }
rescue ConnectionFailure
# 1.8x will raise connection failures
end
@conn['admin'].command({:ismaster => 1})

View File

@ -46,7 +46,7 @@ class ReplSetManager
end
def start_set
system("killall mongod > /dev/null 2>/dev/null")
system("killall mongod > /dev/null 2> /dev/null")
sleep(1)
should_start = true
#puts "** Starting a replica set with #{@count} nodes"