minor: test fix for legacy mongo
This commit is contained in:
parent
d42eee278b
commit
b2a1841f9c
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue