diff options
author | MacroFake <falke.marco@gmail.com> | 2022-06-30 16:09:50 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-06-30 16:10:14 +0200 |
commit | b6cf0f8848ed81bf487c7770754848b86e8c07ef (patch) | |
tree | 87ac28c6b80ad1d95f2bf8f2da4e3a5ffb202f15 /test | |
parent | bae8a66d42d6c5b351879e15e1ab229a1324b18a (diff) | |
parent | d22bd543cc666e7fdb6fdd0eca5f7514f516b393 (diff) | |
download | bitcoin-b6cf0f8848ed81bf487c7770754848b86e8c07ef.tar.xz |
Merge bitcoin/bitcoin#25511: test: non-positive integer value to `-peertimeout` should throw an error
d22bd543cc666e7fdb6fdd0eca5f7514f516b393 test: passing a non-positive integer value to `-peertimeout` should throw an error (brunoerg)
Pull request description:
This PR adds test coverage for #25506, since #25505 gets closed.
ACKs for top commit:
kristapsk:
ACK d22bd543cc666e7fdb6fdd0eca5f7514f516b393
w0xlt:
ACK https://github.com/bitcoin/bitcoin/pull/25511/commits/d22bd543cc666e7fdb6fdd0eca5f7514f516b393
1440000bytes:
ACK https://github.com/bitcoin/bitcoin/pull/25511/commits/d22bd543cc666e7fdb6fdd0eca5f7514f516b393
Tree-SHA512: 89c8a097606cb52569d816cc2227baac832df70e381d07c4a12aeb024c500d334c8102218fc6519eebb3819159d8308119d7253d9192a6bebe13b8e738b286b9
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/p2p_timeouts.py | 5 |
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() |