spec/functional_spec_helpers.rb in etcd-0.0.5 vs spec/functional_spec_helpers.rb in etcd-0.0.6

- old
+ new

@@ -25,14 +25,14 @@ end FileUtils.remove_entry_secure @tmpdir end def spawn_etcd_server(dir, client_port=4001, server_port=7001, leader = nil) - args = " -c 127.0.0.1:#{client_port} -s 127.0.0.1:#{server_port} -d #{dir} -n node_#{client_port}" + args = " -addr 127.0.0.1:#{client_port} -peer-addr 127.0.0.1:#{server_port} -data-dir #{dir} -name node_#{client_port}" command = if leader.nil? ETCD_BIN + args else - ETCD_BIN + args + " -C #{leader}" + ETCD_BIN + args + " -peers #{leader}" end puts command pid = spawn(command) Process.detach(pid) sleep 1