Fix error string in tests

This commit fixes a test checking an error string from an external
dependency.
pull/1511/head
Mariano Cano 10 months ago
parent 6067560834
commit d8eeebfd51
No known key found for this signature in database

@ -3444,7 +3444,7 @@ func Test_deviceAttest01Validate(t *testing.T) {
}, },
payload: errorCBORPayload, payload: errorCBORPayload,
}, },
wantErr: NewErrorISE("error unmarshalling CBOR: cbor: cannot unmarshal positive integer into Go value of type acme.attestationObject"), wantErr: NewErrorISE("error unmarshalling CBOR: cbor:"),
} }
}, },
"ok/prov.IsAttestationFormatEnabled": func(t *testing.T) test { "ok/prov.IsAttestationFormatEnabled": func(t *testing.T) test {
@ -4003,8 +4003,9 @@ func Test_deviceAttest01Validate(t *testing.T) {
tc := run(t) tc := run(t)
if err := deviceAttest01Validate(tc.args.ctx, tc.args.ch, tc.args.db, tc.args.jwk, tc.args.payload); err != nil { if err := deviceAttest01Validate(tc.args.ctx, tc.args.ch, tc.args.db, tc.args.jwk, tc.args.payload); err != nil {
assert.Error(t, tc.wantErr) if assert.Error(t, tc.wantErr) {
assert.EqualError(t, err, tc.wantErr.Error()) assert.ErrorContains(t, err, tc.wantErr.Error())
}
return return
} }

Loading…
Cancel
Save