Fix test that fails now that advertise can't be localhost

This commit is contained in:
Michael Schurter 2016-11-08 16:22:04 -08:00
parent 290f71f62e
commit f1120e4de0
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ func TestCommand_Args(t *testing.T) {
ShutdownCh: shutdownCh,
}
// To prevent test failures on hosts whose hostname resolves to
// a loopback address, we must append a bind address
tc.args = append(tc.args, "-bind=127.0.0.1")
if code := cmd.Run(tc.args); code != 1 {
t.Fatalf("args: %v\nexit: %d\n", tc.args, code)
}