aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2016-09-28 11:08:08 -0400
committerMarcoFalke <falke.marco@gmail.com>2016-10-03 10:54:51 +0200
commit9bbe66e5929b47f3990a916787f1b145556fd665 (patch)
tree6b5f590f8d150cda1c0803a02eb12808f3348f28 /qa
parent375437c26bba95e9c25b758a186a3370f1d5e15d (diff)
downloadbitcoin-9bbe66e5929b47f3990a916787f1b145556fd665.tar.xz
[qa] Split up slow RPC calls to avoid pruning test timeouts
Github-Pull: #8827 Rebased-From: a0f8482f3e9b07e37c3f1b6fa09683b448810955
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/pruning.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/qa/rpc-tests/pruning.py b/qa/rpc-tests/pruning.py
index 7cbe69c29b..287dbc776e 100755
--- a/qa/rpc-tests/pruning.py
+++ b/qa/rpc-tests/pruning.py
@@ -157,7 +157,10 @@ class PruneTest(BitcoinTestFramework):
print("Usage possibly still high bc of stale blocks in block files:", calc_usage(self.prunedir))
print("Mine 220 more blocks so we have requisite history (some blocks will be big and cause pruning of previous chain)")
- self.nodes[0].generate(220) #node 0 has many large tx's in its mempool from the disconnects
+ for i in range(22):
+ # This can be slow, so do this in multiple RPC calls to avoid
+ # RPC timeouts.
+ self.nodes[0].generate(10) #node 0 has many large tx's in its mempool from the disconnects
sync_blocks(self.nodes[0:3], timeout=300)
usage = calc_usage(self.prunedir)