minor: test fix
This commit is contained in:
parent
7a11bb18a9
commit
8e02b4e9b4
|
@ -26,7 +26,8 @@ class ConnectTest < Test::Unit::TestCase
|
||||||
def test_accessors
|
def test_accessors
|
||||||
seeds = [RS.host, RS.ports[0]], [RS.host, RS.ports[1]],
|
seeds = [RS.host, RS.ports[0]], [RS.host, RS.ports[1]],
|
||||||
[RS.host, RS.ports[2]]
|
[RS.host, RS.ports[2]]
|
||||||
@conn = ReplSetConnection.new(*seeds, :name => RS.name)
|
args = seeds << {:name => RS.name}
|
||||||
|
@conn = ReplSetConnection.new(*args)
|
||||||
|
|
||||||
assert_equal @conn.host, RS.primary[0]
|
assert_equal @conn.host, RS.primary[0]
|
||||||
assert_equal @conn.port, RS.primary[1]
|
assert_equal @conn.port, RS.primary[1]
|
||||||
|
|
|
@ -188,7 +188,7 @@ class ReplSetManager
|
||||||
def kill(node, signal=2)
|
def kill(node, signal=2)
|
||||||
pid = @mongods[node]['pid']
|
pid = @mongods[node]['pid']
|
||||||
puts "** Killing node with pid #{pid} at port #{@mongods[node]['port']}"
|
puts "** Killing node with pid #{pid} at port #{@mongods[node]['port']}"
|
||||||
system("kill -2 #{pid}")
|
system("kill #{pid}")
|
||||||
@mongods[node]['up'] = false
|
@mongods[node]['up'] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue