Skip to content

Commit

Permalink
Send fewer spam messages in p2p_invalid_messages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jamesob committed Nov 6, 2018
1 parent 6af27b8 commit 3d305e3
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 @@ -72,7 +72,7 @@ def run_test(self):
"memory exhaustion. May take a bit...")

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

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

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

#
Expand Down

0 comments on commit 3d305e3

Please sign in to comment.