From 8332e6e4cf45455fea0bf1f7527256cdb7bb1e6d Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Tue, 1 Mar 2022 22:45:48 +0100 Subject: [PATCH] test: passing invalid -onion raises expected init error --- test/functional/feature_proxy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/functional/feature_proxy.py b/test/functional/feature_proxy.py index 7387c76367..fa047ba928 100755 --- a/test/functional/feature_proxy.py +++ b/test/functional/feature_proxy.py @@ -32,6 +32,7 @@ addnode connect to a CJDNS address - Test getnetworkinfo for each node - Test passing invalid -proxy +- Test passing invalid -onion """ import socket @@ -313,6 +314,11 @@ class ProxyTest(BitcoinTestFramework): msg = "Error: Invalid -proxy address or hostname: 'abc:def'" self.nodes[1].assert_start_raises_init_error(expected_msg=msg) + self.log.info("Test passing invalid -onion raises expected init error") + self.nodes[1].extra_args = ["-onion=xyz:abc"] + msg = "Error: Invalid -onion address or hostname: 'xyz:abc'" + self.nodes[1].assert_start_raises_init_error(expected_msg=msg) + if __name__ == '__main__': ProxyTest().main()