Skip to content

Commit 3d305e3

Browse files
committed
Send fewer spam messages in p2p_invalid_messages
Builds on travis are failing because the test node isn't able to drop all the bad messages sent within the given timeout. Reduce the number of bad messages we're sending and increase the timeout to avoid failures on travis.
1 parent 6af27b8 commit 3d305e3

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
@@ -72,7 +72,7 @@ def run_test(self):
7272
"memory exhaustion. May take a bit...")
7373

7474
# Run a bunch of times to test for memory exhaustion.
75-
for _ in range(200):
75+
for _ in range(80):
7676
node.p2p.send_message(msg_at_size)
7777

7878
# Check that, even though the node is being hammered by nonsense from one
@@ -82,7 +82,7 @@ def run_test(self):
8282

8383
# Peer 1, despite serving up a bunch of nonsense, should still be connected.
8484
self.log.info("Waiting for node to drop junk messages.")
85-
node.p2p.sync_with_ping(timeout=8)
85+
node.p2p.sync_with_ping(timeout=30)
8686
assert node.p2p.is_connected
8787

8888
#

0 commit comments

Comments
 (0)