aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_leak.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-06-20 21:24:29 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-06-22 12:00:00 -0400
commitfa1eac9cdb1a491d5947b6972b87833792a16fe3 (patch)
treef889edb2824334f4207f47eaf7d209903a6941ea /test/functional/p2p_leak.py
parentac3224c8eea9cacba23fea3a4f22a0375485dce7 (diff)
downloadbitcoin-fa1eac9cdb1a491d5947b6972b87833792a16fe3.tar.xz
[qa] mininode: Expose connection state through is_connected
Diffstat (limited to 'test/functional/p2p_leak.py')
-rwxr-xr-xtest/functional/p2p_leak.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/p2p_leak.py b/test/functional/p2p_leak.py
index 198dcc1490..dca5ea39de 100755
--- a/test/functional/p2p_leak.py
+++ b/test/functional/p2p_leak.py
@@ -118,11 +118,11 @@ class P2PLeakTest(BitcoinTestFramework):
time.sleep(5)
#This node should have been banned
- assert no_version_bannode.state != "connected"
+ assert not no_version_bannode.is_connected
# These nodes should have been disconnected
- assert unsupported_service_bit5_node.state != "connected"
- assert unsupported_service_bit7_node.state != "connected"
+ assert not unsupported_service_bit5_node.is_connected
+ assert not unsupported_service_bit7_node.is_connected
self.nodes[0].disconnect_p2ps()