mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01:00
scripted-diff: test: Rename send_message to send_without_ping
send_message only drops the bytes in a buffer and a sync is needed to
avoid intermittent test issues. Change the name of the method to make
this more apparent during review.
-BEGIN VERIFY SCRIPT-
sed -i 's/send_message(/send_without_ping(/g' $( git grep -l 'send_message(' )
-END VERIFY SCRIPT-
This commit is contained in:
@@ -67,10 +67,10 @@ class TimeoutsTest(BitcoinTestFramework):
|
||||
assert no_send_node.is_connected
|
||||
|
||||
with self.nodes[0].assert_debug_log(['Unsupported message "ping" prior to verack from peer=0']):
|
||||
no_verack_node.send_message(msg_ping())
|
||||
no_verack_node.send_without_ping(msg_ping())
|
||||
|
||||
with self.nodes[0].assert_debug_log(['non-version message before version handshake. Message "ping" from peer=1']):
|
||||
no_version_node.send_message(msg_ping())
|
||||
no_version_node.send_without_ping(msg_ping())
|
||||
|
||||
self.mock_forward(1)
|
||||
assert "version" in no_verack_node.last_message
|
||||
@@ -79,8 +79,8 @@ class TimeoutsTest(BitcoinTestFramework):
|
||||
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())
|
||||
no_verack_node.send_without_ping(msg_ping())
|
||||
no_version_node.send_without_ping(msg_ping())
|
||||
|
||||
if self.options.v2transport:
|
||||
expected_timeout_logs = [
|
||||
|
||||
Reference in New Issue
Block a user