test: expect the SOCKS dial error for the supported schemes

This commit is contained in:
dualfroz committed 2026-09-14 05:57:21 +02:00
1 parent 10043d6779
commit d23b3ab6f8
1 file changed
+1 -1
+1 -1
View File
@@ -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")
})
}