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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user