aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_proxy.py
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-03-26 21:50:34 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-03-26 21:50:34 -0300
commit45e67b2695852c94d5da3f9b82f2b567cbbd2cc3 (patch)
tree865fddc058573431c2541979611cce835d66a6cd /test/functional/feature_proxy.py
parent2f0f056e08cd5a1435120592a9ecd212fcdb915b (diff)
downloadbitcoin-45e67b2695852c94d5da3f9b82f2b567cbbd2cc3.tar.xz
test: invalid -i2psam will raise an init error
Diffstat (limited to 'test/functional/feature_proxy.py')
-rwxr-xr-xtest/functional/feature_proxy.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/feature_proxy.py b/test/functional/feature_proxy.py
index 14308b3fd1..19be110f17 100755
--- a/test/functional/feature_proxy.py
+++ b/test/functional/feature_proxy.py
@@ -33,6 +33,7 @@ addnode connect to a CJDNS address
- Test passing invalid -proxy
- Test passing invalid -onion
+- Test passing invalid -i2psam
- Test passing -onlynet=onion without -proxy or -onion
- Test passing -onlynet=onion with -onion=0 and with -noonion
"""
@@ -321,6 +322,11 @@ class ProxyTest(BitcoinTestFramework):
msg = "Error: Invalid -onion address or hostname: 'xyz:abc'"
self.nodes[1].assert_start_raises_init_error(expected_msg=msg)
+ self.log.info("Test passing invalid -i2psam raises expected init error")
+ self.nodes[1].extra_args = ["-i2psam=def:xyz"]
+ msg = "Error: Invalid -i2psam address or hostname: 'def:xyz'"
+ self.nodes[1].assert_start_raises_init_error(expected_msg=msg)
+
msg = (
"Error: Outbound connections restricted to Tor (-onlynet=onion) but "
"the proxy for reaching the Tor network is not provided (no -proxy= "