@@ -322,7 +322,7 @@ func TestValidate(t *testing.T) {
322322 {
323323 val : & SMTPConfiguration {Headers : "invalid" },
324324 check : func (t * testing.T , v any ) {
325- const exp = `conf: SMTP headers not `
325+ const exp = `invalid character `
326326
327327 mcfg := v .(* SMTPConfiguration )
328328 val := mcfg .normalizedHeadersVal .val
@@ -338,7 +338,7 @@ func TestValidate(t *testing.T) {
338338 {
339339 val : & MailerConfiguration {EmailValidationServiceHeaders : "invalid" },
340340 check : func (t * testing.T , v any ) {
341- const exp = `conf: mailer validation headers `
341+ const exp = `invalid character `
342342
343343 mcfg := v .(* MailerConfiguration )
344344 val := mcfg .serviceHeadersVal .val
@@ -351,7 +351,7 @@ func TestValidate(t *testing.T) {
351351 {
352352 val : & MailerConfiguration {EmailValidationBlockedMX : "invalid" },
353353 check : func (t * testing.T , v any ) {
354- const exp = `conf: blocked mx records `
354+ const exp = `invalid character `
355355 mcfg := v .(* MailerConfiguration )
356356 val := mcfg .blockedMXRecordsVal .val
357357 err := mcfg .blockedMXRecordsVal .err
0 commit comments