diff --git a/test/replica_sets/basic_test.rb b/test/replica_sets/basic_test.rb index c590350..ab109d0 100644 --- a/test/replica_sets/basic_test.rb +++ b/test/replica_sets/basic_test.rb @@ -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] diff --git a/test/tools/repl_set_manager.rb b/test/tools/repl_set_manager.rb index 995f1df..39ec28c 100644 --- a/test/tools/repl_set_manager.rb +++ b/test/tools/repl_set_manager.rb @@ -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