diff options
Diffstat (limited to 'test/functional/p2p_invalid_messages.py')
-rwxr-xr-x | test/functional/p2p_invalid_messages.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/p2p_invalid_messages.py b/test/functional/p2p_invalid_messages.py index 507393fb70..c8228df802 100755 --- a/test/functional/p2p_invalid_messages.py +++ b/test/functional/p2p_invalid_messages.py @@ -261,7 +261,7 @@ class InvalidMessagesTest(BitcoinTestFramework): self.log.info("Test {} message of size {} is logged as misbehaving".format(msg_type, size)) with self.nodes[0].assert_debug_log(['Misbehaving', '{} message size = {}'.format(msg_type, size)]): conn = self.nodes[0].add_p2p_connection(P2PInterface()) - conn.send_message(msg) + conn.send_without_ping(msg) conn.wait_for_disconnect() self.nodes[0].disconnect_p2ps() @@ -304,7 +304,7 @@ class InvalidMessagesTest(BitcoinTestFramework): blockheader.nNonce += 1 blockheader.rehash() with self.nodes[0].assert_debug_log(['Misbehaving', 'header with invalid proof of work']): - peer.send_message(msg_headers([blockheader])) + peer.send_without_ping(msg_headers([blockheader])) peer.wait_for_disconnect() def test_noncontinuous_headers_msg(self): @@ -323,7 +323,7 @@ class InvalidMessagesTest(BitcoinTestFramework): # delete arbitrary block header somewhere in the middle to break link del block_headers[random.randrange(1, len(block_headers)-1)] with self.nodes[0].assert_debug_log(expected_msgs=MISBEHAVING_NONCONTINUOUS_HEADERS_MSGS): - peer.send_message(msg_headers(block_headers)) + peer.send_without_ping(msg_headers(block_headers)) peer.wait_for_disconnect() self.nodes[0].disconnect_p2ps() @@ -338,7 +338,7 @@ class InvalidMessagesTest(BitcoinTestFramework): self.log.info("(a) Send 80 messages, each of maximum valid data size (4MB)") for _ in range(80): - conn.send_message(msg_at_size) + conn.send_without_ping(msg_at_size) # Check that, even though the node is being hammered by nonsense from one # connection, it can still service other peers in a timely way. |