test: add missing debug log assertion in p2p_invalid_messages.py

This commit is contained in:
Kittywhiskers Van Gogh 2024-10-14 21:49:39 +00:00
parent bd2fe6103d
commit 4cce72fc3e
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -118,7 +118,7 @@ class InvalidMessagesTest(BitcoinTestFramework):
def test_size(self):
self.log.info("Test message with oversized payload disconnects peer")
conn = self.nodes[0].add_p2p_connection(P2PDataStore())
with self.nodes[0].assert_debug_log(['']):
with self.nodes[0].assert_debug_log(['Header error: Size too large (badmsg, 3145729 bytes)']):
msg = msg_unrecognized(str_data="d"*(VALID_DATA_LIMIT + 1))
msg = conn.build_message(msg)
conn.send_raw_message(msg)