From 5d86afe9a53e94bda79a1da0a35dcdaeb8bb70e3 Mon Sep 17 00:00:00 2001 From: Jim Kalafut Date: Tue, 4 Sep 2018 11:35:28 -0600 Subject: [PATCH] Fix server test that fails build under 1.11 (#5264) command/server_test.go:147:2: finished declared but not used vet: typecheck failures --- command/server_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/command/server_test.go b/command/server_test.go index 283de12868..8abaee1cbb 100644 --- a/command/server_test.go +++ b/command/server_test.go @@ -144,9 +144,6 @@ func TestServer_ReloadListener(t *testing.T) { ui, cmd := testServerCommand(t) _ = ui - finished := false - finishedMutex := sync.Mutex{} - wg.Add(1) args := []string{"-config", td + "/reload.hcl"} go func() { @@ -154,9 +151,6 @@ func TestServer_ReloadListener(t *testing.T) { output := ui.ErrorWriter.String() + ui.OutputWriter.String() t.Errorf("got a non-zero exit status: %s", output) } - finishedMutex.Lock() - finished = true - finishedMutex.Unlock() wg.Done() }()