bind to localhost:0 in tests to avoid binding to the same port

This commit is contained in:
Matt Jaffee 2017-03-15 22:41:24 -05:00
parent 2aef65989e
commit dcafca3141

View file

@ -54,6 +54,7 @@ bind = "localhost:0"
args: []string{"server", "--anti-entropy.interval", "9m0s"},
env: map[string]string{"PILOSA_CLUSTER.HOSTS": "example.com:1110,example.com:1111"},
cfgFileContent: `
bind = "localhost:0"
[cluster]
hosts = [
"localhost:19444",
@ -74,6 +75,7 @@ bind = "localhost:0"
args: []string{"server"},
env: map[string]string{"PILOSA_PROFILE.CPU_TIME": "1m"},
cfgFileContent: `
bind = "localhost:0"
[cluster]
poll-interval = "2m0s"
hosts = [