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"
"encoding/base64"
"errors"
"testing"
@ -151,8 +150,7 @@ func TestVerify(t *testing.T) {
}
fileHandler := file.NewHandler(tc.setupFs(require))
ctx := context.Background()
err := verify(ctx, cmd, tc.provider, fileHandler, tc.protoClient)
err := verify(cmd, tc.provider, fileHandler, tc.protoClient)
if tc.wantErr {
assert.Error(err)