Remove passing context seperately to initialize

This commit is contained in:
Nils Hanke 2022-06-28 11:19:03 +02:00 committed by Nils Hanke
parent 0653c20792
commit e3f78a5bff
6 changed files with 18 additions and 27 deletions

View file

@ -2,7 +2,6 @@ package cmd
import (
"bytes"
"context"
"errors"
"testing"
@ -182,8 +181,7 @@ func TestRecover(t *testing.T) {
require.NoError(fileHandler.WriteJSON(constants.StateFilename, tc.existingState, file.OptNone))
}
ctx := context.Background()
err := recover(ctx, cmd, fileHandler, tc.client)
err := recover(cmd, fileHandler, tc.client)
if tc.wantErr {
assert.Error(err)