From 8cc761de176d3508ff24afb2f2cbf1d78c4fcd15 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 24 Dec 2013 16:53:30 -0800 Subject: [PATCH] Enable bootstrap mode for the tests --- command/agent/agent_test.go | 1 + consul/server_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/command/agent/agent_test.go b/command/agent/agent_test.go index 6b21a62fb0..849c61201c 100644 --- a/command/agent/agent_test.go +++ b/command/agent/agent_test.go @@ -16,6 +16,7 @@ func nextConfig() *Config { idx := atomic.AddUint64(&offset, 1) conf := DefaultConfig() + conf.Bootstrap = true conf.Datacenter = "dc1" conf.HTTPAddr = fmt.Sprintf("127.0.0.1:%d", 8500+10*idx) conf.RPCAddr = fmt.Sprintf("127.0.0.1:%d", 8400+10*idx) diff --git a/consul/server_test.go b/consul/server_test.go index 36d71f3be4..37a1d73f4a 100644 --- a/consul/server_test.go +++ b/consul/server_test.go @@ -31,6 +31,7 @@ func testServer(t *testing.T) (string, *Server) { func testServerDC(t *testing.T, dc string) (string, *Server) { dir := tmpDir(t) config := DefaultConfig() + config.Bootstrap = true config.Datacenter = dc config.DataDir = dir