Skip to content

Commit

Permalink
test: increase timeout in p2p_invalid_messages.py to reduce flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Dec 24, 2024
1 parent ad7a373 commit c67d5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/p2p_invalid_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit c67d5ee

Please sign in to comment.