diff --git a/internal/ipc/unlock_test.go b/internal/ipc/unlock_test.go index f055d5f..7d3d541 100644 --- a/internal/ipc/unlock_test.go +++ b/internal/ipc/unlock_test.go @@ -42,7 +42,11 @@ func TestUnlockDeliversSecretToHook(t *testing.T) { var gotUnlock, gotWrap []byte var gotExplicit bool srv.UnlockFn = func(_ context.Context, s []byte) error { gotUnlock = bytes.Clone(s); return nil } - srv.WrapKeyFn = func(_ context.Context, s []byte, explicit bool) error { gotWrap = bytes.Clone(s); gotExplicit = explicit; return nil } + srv.WrapKeyFn = func(_ context.Context, s []byte, explicit bool) error { + gotWrap = bytes.Clone(s) + gotExplicit = explicit + return nil + } ctx := context.Background() if err := cli.Unlock(ctx, secret); err != nil {