From aba2b2e7a2cb5cf3983d4d7e7e2946fbdb5e22be Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 19 Apr 2019 22:47:44 +0000 Subject: functional_tests: reset blockchain on test start --- tests/functional_tests/mining.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/functional_tests/mining.py') diff --git a/tests/functional_tests/mining.py b/tests/functional_tests/mining.py index 1b189beb2..78dc68640 100755 --- a/tests/functional_tests/mining.py +++ b/tests/functional_tests/mining.py @@ -43,9 +43,16 @@ from framework.wallet import Wallet class MiningTest(): def run_test(self): + self.reset() self.create() self.mine() + def reset(self): + print 'Resetting blockchain' + daemon = Daemon() + daemon.pop_blocks(1000) + daemon.flush_txpool() + def create(self): print 'Creating wallet' wallet = Wallet() -- cgit v1.2.3