Skip to content

Commit

Permalink
Fix server test that fails build under 1.11 (#5264)
Browse files Browse the repository at this point in the history
command/server_test.go:147:2: finished declared but not used
vet: typecheck failures
  • Loading branch information
kalafut committed Sep 4, 2018
1 parent 13887f0 commit 5d86afe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions command/server_test.go
Expand Up @@ -144,19 +144,13 @@ 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() {
if code := cmd.Run(args); code != 0 {
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()
}()

Expand Down

0 comments on commit 5d86afe

Please sign in to comment.