From d23b3ab6f851e99dc3b79e3d7b6598d6ba17fbd6 Mon Sep 17 00:00:00 2001 From: DualFroz Date: Mon, 14 Sep 2026 05:57:21 +0200 Subject: [PATCH] test: expect the SOCKS dial error for the supported schemes --- smtp_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtp_test.go b/smtp_test.go index 34299cd..c0d6a55 100644 --- a/smtp_test.go +++ b/smtp_test.go @@ -242,7 +242,7 @@ func TestEstablishProxyConnection_Schemes(t *testing.T) { t.Run(scheme+" is supported", func(tt *testing.T) { _, err := establishProxyConnection("example.com:25", scheme+"://"+proxyAddr, time.Second) require.Error(tt, err) - assert.NotContains(tt, err.Error(), "unknown scheme") + require.ErrorContains(tt, err, "socks connect") }) }