diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-07-11 10:41:23 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-07-14 12:29:47 +0200 |
commit | faa9a74c9e99eb43ba0d27fa906767ee88011aeb (patch) | |
tree | 836e1e781cf7caef0535341cae46280a3931bf43 /test/functional/p2p_filter.py | |
parent | ca055885c631de8ac0ffe24be6b02835dbcc039d (diff) | |
download | bitcoin-faa9a74c9e99eb43ba0d27fa906767ee88011aeb.tar.xz |
test: Fail wait_until early if connection is lost
Diffstat (limited to 'test/functional/p2p_filter.py')
-rwxr-xr-x | test/functional/p2p_filter.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/p2p_filter.py b/test/functional/p2p_filter.py index 741da3be31..c8e2616b79 100755 --- a/test/functional/p2p_filter.py +++ b/test/functional/p2p_filter.py @@ -218,7 +218,11 @@ class FilterTest(BitcoinTestFramework): # Add peer but do not send version yet filter_peer_without_nrelay = self.nodes[0].add_p2p_connection(P2PBloomFilter(), send_version=False, wait_for_verack=False) # Send version with fRelay=False - filter_peer_without_nrelay.wait_until(lambda: filter_peer_without_nrelay.is_connected, timeout=10) + filter_peer_without_nrelay.wait_until( + lambda: filter_peer_without_nrelay.is_connected, + timeout=10, + check_connected=False, + ) version_without_fRelay = msg_version() version_without_fRelay.nRelay = 0 filter_peer_without_nrelay.send_message(version_without_fRelay) |