0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-05 14:06:27 -05:00

test: Use self.wait_until over wait_until_helper

This commit is contained in:
MarcoFalke 2023-03-08 11:38:03 +01:00
parent d4ebdceaef
commit faa671591f
No known key found for this signature in database

View file

@ -464,7 +464,7 @@ class P2PInterface(P2PConnection):
def wait_for_connect(self, timeout=60): def wait_for_connect(self, timeout=60):
test_function = lambda: self.is_connected test_function = lambda: self.is_connected
wait_until_helper(test_function, timeout=timeout, lock=p2p_lock) self.wait_until(test_function, timeout=timeout, check_connected=False)
def wait_for_disconnect(self, timeout=60): def wait_for_disconnect(self, timeout=60):
test_function = lambda: not self.is_connected test_function = lambda: not self.is_connected