git » chasquid » commit 2e8d422

test: Update error string in chasquid-util dkim test

author Alberto Bertogli
2026-08-23 11:00:17 UTC
committer Alberto Bertogli
2026-08-23 16:06:22 UTC
parent d9ef3f58b37dd22bcc4b576ab7ab88b48df96232

test: Update error string in chasquid-util dkim test

In Go commit edf006c9a3fbb23304dd53590e62fef9250ebb94 (released in Go
1.27.0), net/mail was changed to add escaping to some error messages.

In the cmd/chasquid-util/test_dkim.cmy test, we were validating output
against one of those messages, so in Go 1.27.0 the test now fails.

This patch updates the test to match the new string.

Note we don't increase the minimum version yet in go.mod: 1.27 is newly
released, and chasquid can be built fine with 1.25 for now.

We may end up increasing the minimum version later if this discrepancy
causes confusion or test errors.

cmd/chasquid-util/test_dkim.cmy +1 -1

diff --git a/cmd/chasquid-util/test_dkim.cmy b/cmd/chasquid-util/test_dkim.cmy
index 9f315cb..f3a398b 100644
--- a/cmd/chasquid-util/test_dkim.cmy
+++ b/cmd/chasquid-util/test_dkim.cmy
@@ -146,7 +146,7 @@ c wait 0
 c = ./chasquid-util -C=.config dkim-sign
 c -> Invalid message.
 c close
-c <- Error parsing message: malformed header line: Invalid message.
+c <- Error parsing message: malformed header line: "Invalid message."
 c wait 1
 
 c = ./chasquid-util -C=.config dkim-sign