diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-06-20 21:24:29 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-06-22 12:00:00 -0400 |
commit | fa1eac9cdb1a491d5947b6972b87833792a16fe3 (patch) | |
tree | f889edb2824334f4207f47eaf7d209903a6941ea /test/functional/p2p_compactblocks.py | |
parent | ac3224c8eea9cacba23fea3a4f22a0375485dce7 (diff) | |
download | bitcoin-fa1eac9cdb1a491d5947b6972b87833792a16fe3.tar.xz |
[qa] mininode: Expose connection state through is_connected
Diffstat (limited to 'test/functional/p2p_compactblocks.py')
-rwxr-xr-x | test/functional/p2p_compactblocks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/p2p_compactblocks.py b/test/functional/p2p_compactblocks.py index cb4c9867a3..37849e9213 100755 --- a/test/functional/p2p_compactblocks.py +++ b/test/functional/p2p_compactblocks.py @@ -87,7 +87,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) - wait_until(lambda: self.state != "connected", timeout=timeout, lock=mininode_lock) + wait_until(lambda: not self.is_connected, timeout=timeout, lock=mininode_lock) class CompactBlocksTest(BitcoinTestFramework): def set_test_params(self): |