ipc: gofmt unlock_test.go

The explicit-wrap assertions went in unformatted and make test's
fmt-check step failed on them.

Found in review of #77.
This commit is contained in:
kami
2026-08-01 14:21:55 +04:00
parent d3fcc1dfdb
commit 9a9f4464d5
+5 -1
View File
@@ -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 {