Skip to content

Commit 55b097a

Browse files
committed
Fix protobuf enum field type error message comparison test
1 parent ebcb6a1 commit 55b097a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

authority/admin/api/webhook_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ func TestWebhookAdminResponder_CreateProvisionerWebhook(t *testing.T) {
186186
Name: "provName",
187187
}
188188
ctx := linkedca.NewContextWithProvisioner(context.Background(), prov)
189-
adminErr := admin.NewError(admin.ErrorBadRequestType, `(line 5:13): invalid value for enum type: "UNSUPPORTED"`)
190-
adminErr.Message = `(line 5:13): invalid value for enum type: "UNSUPPORTED"`
189+
adminErr := admin.NewError(admin.ErrorBadRequestType, `(line 5:13): invalid value for enum field kind: "UNSUPPORTED"`)
190+
adminErr.Message = `(line 5:13): invalid value for enum field kind: "UNSUPPORTED"`
191191
body := []byte(`
192192
{
193193
"name": "metadata",

0 commit comments

Comments
 (0)