Fix server test that fails build under 1.11 (#5264)

command/server_test.go:147:2: finished declared but not used
vet: typecheck failures
This commit is contained in:
Jim Kalafut
2018-09-04 11:35:28 -06:00
committed by GitHub
parent 13887f0d33
commit 5d86afe9a5

View File

@@ -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()
}()