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:
Evan Gilman 2015-12-23 15:47:15 -08:00 committed by James Phillips
parent a3240d28ba
commit 146f719a66
1 changed files with 1 additions and 0 deletions

View File

@ -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,