aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_proxy.py
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2022-03-01 22:49:02 +0100
committerJon Atack <jon@atack.com>2022-03-03 15:31:44 +0100
commit58a14795b89a6bd812e0b71cb8b3088b8ab55c11 (patch)
tree44f1294f783c206cc7e4a01e90e587d0464d56eb /test/functional/feature_proxy.py
parent7000f66d367123d1de303fc15ce2ce60df379c11 (diff)
downloadbitcoin-58a14795b89a6bd812e0b71cb8b3088b8ab55c11.tar.xz
test: passing -onlynet=onion with -onion=0/-noonion raises expected 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 d23733c5d3..14308b3fd1 100755
--- a/test/functional/feature_proxy.py
+++ b/test/functional/feature_proxy.py
@@ -34,6 +34,7 @@ addnode connect to a CJDNS address
- Test passing invalid -proxy
- Test passing invalid -onion
- Test passing -onlynet=onion without -proxy or -onion
+- Test passing -onlynet=onion with -onion=0 and with -noonion
"""
import socket
@@ -329,6 +330,11 @@ class ProxyTest(BitcoinTestFramework):
self.nodes[1].extra_args = ["-onlynet=onion"]
self.nodes[1].assert_start_raises_init_error(expected_msg=msg)
+ self.log.info("Test passing -onlynet=onion with -onion=0/-noonion raises expected init error")
+ for arg in ["-onion=0", "-noonion"]:
+ self.nodes[1].extra_args = ["-onlynet=onion", arg]
+ self.nodes[1].assert_start_raises_init_error(expected_msg=msg)
+
if __name__ == '__main__':
ProxyTest().main()