Skip to content

Commit

Permalink
[qa] Split up slow RPC calls to avoid pruning test timeouts
Browse files Browse the repository at this point in the history
Github-Pull: #8827
Rebased-From: a0f8482f3e9b07e37c3f1b6fa09683b448810955
  • Loading branch information
sdaftuar authored and MarcoFalke committed Oct 3, 2016
1 parent 375437c commit 9bbe66e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qa/rpc-tests/pruning.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ def reorg_test(self):
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)
Expand Down

0 comments on commit 9bbe66e

Please sign in to comment.