From c67d5ee37c1a890f3054a7c054a05bf47f4885e0 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Sun, 22 Dec 2024 19:54:57 +0000 Subject: [PATCH] test: increase timeout in `p2p_invalid_messages.py` to reduce flakiness --- test/functional/p2p_invalid_messages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/p2p_invalid_messages.py b/test/functional/p2p_invalid_messages.py index 3706036c5ad09..a5cbf332159f9 100755 --- a/test/functional/p2p_invalid_messages.py +++ b/test/functional/p2p_invalid_messages.py @@ -70,7 +70,7 @@ def test_buffer(self): # However the pong from conn in reply to the ping from the node has not # been processed and recorded in totalbytesrecv. # Flush the pong from conn by sending a ping from conn. - conn.sync_with_ping(timeout=1) + conn.sync_with_ping(timeout=2) # Create valid message msg = conn.build_message(msg_ping(nonce=12345)) cut_pos = 12 # Chosen at an arbitrary position within the header @@ -82,7 +82,7 @@ def test_buffer(self): middle = self.nodes[0].getnettotals()['totalbytesrecv'] assert_equal(middle, before + cut_pos) conn.send_raw_message(msg[cut_pos:]) - conn.sync_with_ping(timeout=1) + conn.sync_with_ping(timeout=2) self.nodes[0].disconnect_p2ps() def test_duplicate_version_msg(self):