Skip to content

Commit 7a83aa0

Browse files
committed
test: add coverage for unparsable -maxuploadtarget
1 parent 7386da7 commit 7a83aa0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/feature_maxuploadtarget.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ def run_test(self):
164164
assert_equal(len(peer_info), 1) # node is still connected
165165
assert_equal(peer_info[0]['permissions'], ['download'])
166166

167+
self.log.info("Test passing an unparsable value to -maxuploadtarget throws an error")
168+
self.stop_node(0)
169+
self.nodes[0].assert_start_raises_init_error(extra_args=["-maxuploadtarget=abc"], expected_msg="Error: Unable to parse -maxuploadtarget: 'abc'")
167170

168171
if __name__ == '__main__':
169172
MaxUploadTest().main()

0 commit comments

Comments
 (0)