]> git.eshelyaron.com Git - emacs.git/commit
Don't hard code server ports in SOCKS tests
authorF. Jason Park <jp@neverwas.me>
Mon, 14 Feb 2022 18:28:01 +0000 (10:28 -0800)
committerF. Jason Park <jp@neverwas.me>
Wed, 18 Oct 2023 13:23:14 +0000 (06:23 -0700)
commit2061bf0645e1f577c380ec81805e463f3c6fec7c
treea87310150f2a00f9478d7b38f0b289c2b6d93f72
parente93d99a4a0ce578249304dce350465c580a49892
Don't hard code server ports in SOCKS tests

* test/lisp/net/socks-tests.el (socks-tests-canned-server-create,
socks-tests-filter-response-parsing-v4): Fix bug in process filter to
prevent prepared outgoing responses from being implicitly encoded as
UTF-8.  Fix similar mistake in v4 filter test.
(socks-tests-v4-basic, socks-tests-v5-auth-user-pass,
socks-tests-v5-auth-user-pass-blank, socks-tests-v5-auth-none): Allow
system to choose port instead of hard-coding it.
(socks-tests-perform-hello-world-http-request): Add optional `method'
parameter to specify a gateway method.
(socks-tests-v5-auth-none): Move body to helper function of the same
name.
(socks-override-functions): New test ensuring top-level advice around
`open-networks-stream' still supported.  (Bug#53941)
test/lisp/net/socks-tests.el