Skip to content

Commit d4a05c2

Browse files
committed
fix: Fix test checking for incorrect validation error
1 parent 5c7229a commit d4a05c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/destregistry/providers/destwebhookstandard/destwebhookstandard_publish_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ func TestStandardWebhookPublisher_CustomHeaders(t *testing.T) {
544544
var validationErr *destregistry.ErrDestinationValidation
545545
assert.ErrorAs(t, err, &validationErr)
546546
assert.Equal(t, "config.custom_headers", validationErr.Errors[0].Field)
547-
assert.Equal(t, "required", validationErr.Errors[0].Type)
547+
assert.Equal(t, "invalid", validationErr.Errors[0].Type)
548548
})
549549

550550
t.Run("should work without custom_headers field", func(t *testing.T) {

0 commit comments

Comments
 (0)