Skip to content

Commit f7d9212

Browse files
committed
test: increase timeout in p2p_invalid_messages.py to reduce flakiness
1 parent 5b5869e commit f7d9212

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/p2p_invalid_messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_buffer(self):
7070
# However the pong from conn in reply to the ping from the node has not
7171
# been processed and recorded in totalbytesrecv.
7272
# Flush the pong from conn by sending a ping from conn.
73-
conn.sync_with_ping(timeout=1)
73+
conn.sync_with_ping(timeout=2)
7474
# Create valid message
7575
msg = conn.build_message(msg_ping(nonce=12345))
7676
cut_pos = 12 # Chosen at an arbitrary position within the header
@@ -82,7 +82,7 @@ def test_buffer(self):
8282
middle = self.nodes[0].getnettotals()['totalbytesrecv']
8383
assert_equal(middle, before + cut_pos)
8484
conn.send_raw_message(msg[cut_pos:])
85-
conn.sync_with_ping(timeout=1)
85+
conn.sync_with_ping(timeout=2)
8686
self.nodes[0].disconnect_p2ps()
8787

8888
def test_duplicate_version_msg(self):

0 commit comments

Comments
 (0)