mirror of https://github.com/status-im/consul.git
Explicitly set advertise address in agent tests
Otherwise, the tests will fail when run on a machine with multiple private addresses
This commit is contained in:
parent
a3240d28ba
commit
146f719a66
|
@ -80,6 +80,7 @@ func TestRetryJoin(t *testing.T) {
|
||||||
"-server",
|
"-server",
|
||||||
"-data-dir", tmpDir,
|
"-data-dir", tmpDir,
|
||||||
"-node", fmt.Sprintf(`"%s"`, conf2.NodeName),
|
"-node", fmt.Sprintf(`"%s"`, conf2.NodeName),
|
||||||
|
"-advertise", agent.config.BindAddr,
|
||||||
"-retry-join", serfAddr,
|
"-retry-join", serfAddr,
|
||||||
"-retry-interval", "1s",
|
"-retry-interval", "1s",
|
||||||
"-retry-join-wan", serfWanAddr,
|
"-retry-join-wan", serfWanAddr,
|
||||||
|
|
Loading…
Reference in New Issue