diff options
| author | MarcoFalke <[email protected]> | 2018-06-20 21:24:29 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-06-22 12:00:00 -0400 |
| commit | fa1eac9cdb1a491d5947b6972b87833792a16fe3 (patch) | |
| tree | f889edb2824334f4207f47eaf7d209903a6941ea /test/functional/p2p_compactblocks.py | |
| parent | Merge #13412: Make ReceivedBlockTransactions return void (diff) | |
| download | discoin-fa1eac9cdb1a491d5947b6972b87833792a16fe3.tar.xz discoin-fa1eac9cdb1a491d5947b6972b87833792a16fe3.zip | |
[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 cb4c9867a..37849e921 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): |