mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
test: passing a non-positive integer value to -peertimeout should throw an error
This commit is contained in:
parent
bae8a66d42
commit
d22bd543cc
1 changed files with 5 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue