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 d18dc81749
commit 28ce1b079f
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ func TestRetryJoin(t *testing.T) {
"-server",
"-data-dir", tmpDir,
"-node", fmt.Sprintf(`"%s"`, conf2.NodeName),
"-advertise", agent.config.BindAddr,
"-retry-join", serfAddr,
"-retry-interval", "1s",
"-retry-join-wan", serfWanAddr,