mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
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:
@@ -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()
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user