test: expect the SOCKS dial error for the supported schemes
This commit is contained in:
1 parent
10043d6779
commit
d23b3ab6f8
1 file changed
+1
-1
+1
-1
@@ -242,7 +242,7 @@ func TestEstablishProxyConnection_Schemes(t *testing.T) {
|
|||||||
t.Run(scheme+" is supported", func(tt *testing.T) {
|
t.Run(scheme+" is supported", func(tt *testing.T) {
|
||||||
_, err := establishProxyConnection("example.com:25", scheme+"://"+proxyAddr, time.Second)
|
_, err := establishProxyConnection("example.com:25", scheme+"://"+proxyAddr, time.Second)
|
||||||
require.Error(tt, err)
|
require.Error(tt, err)
|
||||||
assert.NotContains(tt, err.Error(), "unknown scheme")
|
require.ErrorContains(tt, err, "socks connect")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user