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_timeouts.py | |
parent | ac3224c8eea9cacba23fea3a4f22a0375485dce7 (diff) |
[qa] mininode: Expose connection state through is_connected
Diffstat (limited to 'test/functional/p2p_timeouts.py')
-rwxr-xr-x | test/functional/p2p_timeouts.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/functional/p2p_timeouts.py b/test/functional/p2p_timeouts.py index 6a21b693b4..e958536cf9 100755 --- a/test/functional/p2p_timeouts.py +++ b/test/functional/p2p_timeouts.py @@ -47,9 +47,9 @@ class TimeoutsTest(BitcoinTestFramework): sleep(1) - assert no_verack_node.connected - assert no_version_node.connected - assert no_send_node.connected + assert no_verack_node.is_connected + assert no_version_node.is_connected + assert no_send_node.is_connected no_verack_node.send_message(msg_ping()) no_version_node.send_message(msg_ping()) @@ -58,18 +58,18 @@ class TimeoutsTest(BitcoinTestFramework): assert "version" in no_verack_node.last_message - assert no_verack_node.connected - assert no_version_node.connected - assert no_send_node.connected + assert no_verack_node.is_connected + assert no_version_node.is_connected + assert no_send_node.is_connected no_verack_node.send_message(msg_ping()) no_version_node.send_message(msg_ping()) sleep(31) - assert not no_verack_node.connected - assert not no_version_node.connected - assert not no_send_node.connected + assert not no_verack_node.is_connected + assert not no_version_node.is_connected + assert not no_send_node.is_connected if __name__ == '__main__': TimeoutsTest().main() |