Enable bootstrap mode for the tests

pull/19/head
Armon Dadgar 11 years ago
parent 9a2d3c144a
commit 8cc761de17

@ -16,6 +16,7 @@ func nextConfig() *Config {
idx := atomic.AddUint64(&offset, 1) idx := atomic.AddUint64(&offset, 1)
conf := DefaultConfig() conf := DefaultConfig()
conf.Bootstrap = true
conf.Datacenter = "dc1" conf.Datacenter = "dc1"
conf.HTTPAddr = fmt.Sprintf("127.0.0.1:%d", 8500+10*idx) conf.HTTPAddr = fmt.Sprintf("127.0.0.1:%d", 8500+10*idx)
conf.RPCAddr = fmt.Sprintf("127.0.0.1:%d", 8400+10*idx) conf.RPCAddr = fmt.Sprintf("127.0.0.1:%d", 8400+10*idx)

@ -31,6 +31,7 @@ func testServer(t *testing.T) (string, *Server) {
func testServerDC(t *testing.T, dc string) (string, *Server) { func testServerDC(t *testing.T, dc string) (string, *Server) {
dir := tmpDir(t) dir := tmpDir(t)
config := DefaultConfig() config := DefaultConfig()
config.Bootstrap = true
config.Datacenter = dc config.Datacenter = dc
config.DataDir = dir config.DataDir = dir

Loading…
Cancel
Save