test: makes timeout a forced named argument in tests methods that use it

This makes calls to such methods more explicit and less error prone
This commit is contained in:
Sergi Delgado Segura
2024-03-27 13:35:53 +01:00
parent 19b968f743
commit 61560d5e93
5 changed files with 22 additions and 22 deletions

View File

@ -139,7 +139,7 @@ class TestP2PConn(P2PInterface):
This is used when we want to send a message into the node that we expect
will get us disconnected, eg an invalid block."""
self.send_message(message)
self.wait_for_disconnect(timeout)
self.wait_for_disconnect(timeout=timeout)
class CompactBlocksTest(BitcoinTestFramework):
def set_test_params(self):