minor: test fix

This commit is contained in:
Kyle Banker 2011-10-17 14:36:47 -05:00
parent 7a11bb18a9
commit 8e02b4e9b4
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ class ConnectTest < Test::Unit::TestCase
def test_accessors
seeds = [RS.host, RS.ports[0]], [RS.host, RS.ports[1]],
[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.port, RS.primary[1]

View File

@ -188,7 +188,7 @@ class ReplSetManager
def kill(node, signal=2)
pid = @mongods[node]['pid']
puts "** Killing node with pid #{pid} at port #{@mongods[node]['port']}"
system("kill -2 #{pid}")
system("kill #{pid}")
@mongods[node]['up'] = false
end