diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-09-29 13:09:30 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-09-29 13:09:38 +0200 |
commit | cc9e8aca5f950c78dcfeff63c441ba993c1fe12f (patch) | |
tree | 049b3730dfdb37164fbad087a75a0aca0c1f2e31 /qa/rpc-tests | |
parent | 8ca69a2a88a77eb06149fa049ab1a7e6de38b321 (diff) | |
parent | a0f8482f3e9b07e37c3f1b6fa09683b448810955 (diff) | |
download | bitcoin-cc9e8aca5f950c78dcfeff63c441ba993c1fe12f.tar.xz |
Merge #8827: [qa] Split up slow RPC calls to avoid pruning test timeouts
a0f8482 [qa] Split up slow RPC calls to avoid pruning test timeouts (Suhas Daftuar)
Diffstat (limited to 'qa/rpc-tests')
-rwxr-xr-x | qa/rpc-tests/pruning.py | 5 |
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) |