Do not fail if api_addr and cluster_addr are empty (#4286)

This commit is contained in:
Calvin Leung Huang
2018-04-05 12:54:15 -04:00
committed by Jeff Mitchell
parent e2bb2ec3b9
commit 059493b587
2 changed files with 3 additions and 2 deletions

View File

@@ -147,7 +147,8 @@ func TestServer_ReloadListener(t *testing.T) {
args := []string{"-config", td + "/reload.hcl"}
go func() {
if code := cmd.Run(args); code != 0 {
t.Error("got a non-zero exit status")
output := ui.ErrorWriter.String() + ui.OutputWriter.String()
t.Errorf("got a non-zero exit status: %s", output)
}
finishedMutex.Lock()
finished = true