diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-19 22:47:44 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-20 11:28:19 +0000 |
| commit | aba2b2e7a2cb5cf3983d4d7e7e2946fbdb5e22be (patch) | |
| tree | 926f432c78bbdfa78d8b3002f15c5d0936a20db6 /tests/functional_tests/blockchain.py | |
| parent | 375fde9454a2730dda5ea589587d7786669fd11b (diff) | |
| download | monzero-core-aba2b2e7a2cb5cf3983d4d7e7e2946fbdb5e22be.tar.gz monzero-core-aba2b2e7a2cb5cf3983d4d7e7e2946fbdb5e22be.tar.xz monzero-core-aba2b2e7a2cb5cf3983d4d7e7e2946fbdb5e22be.zip | |
functional_tests: reset blockchain on test start
Diffstat (limited to 'tests/functional_tests/blockchain.py')
| -rwxr-xr-x | tests/functional_tests/blockchain.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional_tests/blockchain.py b/tests/functional_tests/blockchain.py index 56164600d..6376b86d0 100755 --- a/tests/functional_tests/blockchain.py +++ b/tests/functional_tests/blockchain.py @@ -45,9 +45,16 @@ from framework.daemon import Daemon class BlockchainTest(): def run_test(self): + self.reset() self._test_generateblocks(5) self._test_alt_chains() + def reset(self): + print 'Resetting blockchain' + daemon = Daemon() + daemon.pop_blocks(1000) + daemon.flush_txpool() + def _test_generateblocks(self, blocks): assert blocks >= 2 |
