diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2019-08-22 18:17:31 +0200 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2019-10-26 13:24:39 +0200 |
commit | 1abcecc40c518a98b7d17880657ec0247abdf125 (patch) | |
tree | b78f9540641279b72e2288e278b54ef08c6c2fcb /test/functional/feature_pruning.py | |
parent | be50469217bd775c4305938634c32e5932f47841 (diff) | |
download | bitcoin-1abcecc40c518a98b7d17880657ec0247abdf125.tar.xz |
Tests: Use self.chain instead of 'regtest' in almost all current tests
Diffstat (limited to 'test/functional/feature_pruning.py')
-rwxr-xr-x | test/functional/feature_pruning.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/feature_pruning.py b/test/functional/feature_pruning.py index 51523f13e7..b2ae76eb5a 100755 --- a/test/functional/feature_pruning.py +++ b/test/functional/feature_pruning.py @@ -100,7 +100,7 @@ class PruneTest(BitcoinTestFramework): def setup_network(self): self.setup_nodes() - self.prunedir = os.path.join(self.nodes[2].datadir, 'regtest', 'blocks', '') + self.prunedir = os.path.join(self.nodes[2].datadir, self.chain, 'blocks', '') connect_nodes(self.nodes[0], 1) connect_nodes(self.nodes[1], 2) @@ -278,7 +278,7 @@ class PruneTest(BitcoinTestFramework): assert_equal(ret, node.getblockchaininfo()['pruneheight']) def has_block(index): - return os.path.isfile(os.path.join(self.nodes[node_number].datadir, "regtest", "blocks", "blk{:05}.dat".format(index))) + return os.path.isfile(os.path.join(self.nodes[node_number].datadir, self.chain, "blocks", "blk{:05}.dat".format(index))) # should not prune because chain tip of node 3 (995) < PruneAfterHeight (1000) assert_raises_rpc_error(-1, "Blockchain is too short for pruning", node.pruneblockchain, height(500)) |