Skip to content

Commit

Permalink
Fix protobuf enum field type error message comparison test
Browse files Browse the repository at this point in the history
  • Loading branch information
hslatman committed Oct 8, 2024
1 parent ebcb6a1 commit 55b097a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authority/admin/api/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ func TestWebhookAdminResponder_CreateProvisionerWebhook(t *testing.T) {
Name: "provName",
}
ctx := linkedca.NewContextWithProvisioner(context.Background(), prov)
adminErr := admin.NewError(admin.ErrorBadRequestType, `(line 5:13): invalid value for enum type: "UNSUPPORTED"`)
adminErr.Message = `(line 5:13): invalid value for enum type: "UNSUPPORTED"`
adminErr := admin.NewError(admin.ErrorBadRequestType, `(line 5:13): invalid value for enum field kind: "UNSUPPORTED"`)
adminErr.Message = `(line 5:13): invalid value for enum field kind: "UNSUPPORTED"`
body := []byte(`
{
"name": "metadata",
Expand Down

0 comments on commit 55b097a

Please sign in to comment.