aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_invalid_messages.py
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@gmail.com>2018-11-06 11:20:00 -0500
committerJames O'Beirne <james.obeirne@gmail.com>2018-11-06 11:20:00 -0500
commit3d305e3b89ad9069775c3739f6ad7875d64574f7 (patch)
tree379d0650bfcf75ae1b15e89d568450a08f888e2e /test/functional/p2p_invalid_messages.py
parent6af27b81572b7b8e08ebcfe7eb533f40c66be4af (diff)
downloadbitcoin-3d305e3b89ad9069775c3739f6ad7875d64574f7.tar.xz
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.
Diffstat (limited to 'test/functional/p2p_invalid_messages.py')
-rwxr-xr-xtest/functional/p2p_invalid_messages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_invalid_messages.py b/test/functional/p2p_invalid_messages.py
index 85f035628f..a2d40fab1a 100755
--- a/test/functional/p2p_invalid_messages.py
+++ b/test/functional/p2p_invalid_messages.py
@@ -72,7 +72,7 @@ class InvalidMessagesTest(BitcoinTestFramework):
"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
@@ -82,7 +82,7 @@ class InvalidMessagesTest(BitcoinTestFramework):
# 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
#