aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_timeouts.py
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-06-29 17:03:13 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-06-30 10:18:36 -0300
commitd22bd543cc666e7fdb6fdd0eca5f7514f516b393 (patch)
tree87ac28c6b80ad1d95f2bf8f2da4e3a5ffb202f15 /test/functional/p2p_timeouts.py
parentbae8a66d42d6c5b351879e15e1ab229a1324b18a (diff)
downloadbitcoin-d22bd543cc666e7fdb6fdd0eca5f7514f516b393.tar.xz
test: passing a non-positive integer value to `-peertimeout` should throw an error
Diffstat (limited to 'test/functional/p2p_timeouts.py')
-rwxr-xr-xtest/functional/p2p_timeouts.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/p2p_timeouts.py b/test/functional/p2p_timeouts.py
index f0abbc7d8b..15a879ae3c 100755
--- a/test/functional/p2p_timeouts.py
+++ b/test/functional/p2p_timeouts.py
@@ -94,6 +94,11 @@ class TimeoutsTest(BitcoinTestFramework):
no_version_node.wait_for_disconnect(timeout=1)
no_send_node.wait_for_disconnect(timeout=1)
+ self.stop_nodes(0)
+ self.nodes[0].assert_start_raises_init_error(
+ expected_msg='Error: peertimeout must be a positive integer.',
+ extra_args=['-peertimeout=0'],
+ )
if __name__ == '__main__':
TimeoutsTest().main()