From 7a83aa0982dbe1c5e89b904f636840cb2ef56357 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Fri, 16 Dec 2022 14:45:00 -0300 Subject: [PATCH] test: add coverage for unparsable `-maxuploadtarget` --- test/functional/feature_maxuploadtarget.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/functional/feature_maxuploadtarget.py b/test/functional/feature_maxuploadtarget.py index 3ea412002a..b08c5f9589 100755 --- a/test/functional/feature_maxuploadtarget.py +++ b/test/functional/feature_maxuploadtarget.py @@ -164,6 +164,9 @@ class MaxUploadTest(BitcoinTestFramework): assert_equal(len(peer_info), 1) # node is still connected assert_equal(peer_info[0]['permissions'], ['download']) + self.log.info("Test passing an unparsable value to -maxuploadtarget throws an error") + self.stop_node(0) + self.nodes[0].assert_start_raises_init_error(extra_args=["-maxuploadtarget=abc"], expected_msg="Error: Unable to parse -maxuploadtarget: 'abc'") if __name__ == '__main__': MaxUploadTest().main()