Fix test that fails now that advertise can't be localhost
This commit is contained in:
parent
290f71f62e
commit
f1120e4de0
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue