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/wallet_address.py | |
parent | hardfork: fix off by one updating fork index after popping (diff) | |
download | monero-aba2b2e7a2cb5cf3983d4d7e7e2946fbdb5e22be.tar.xz |
functional_tests: reset blockchain on test start
Diffstat (limited to '')
-rwxr-xr-x | tests/functional_tests/wallet_address.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional_tests/wallet_address.py b/tests/functional_tests/wallet_address.py index cb9c52e7a..8a55521c6 100755 --- a/tests/functional_tests/wallet_address.py +++ b/tests/functional_tests/wallet_address.py @@ -39,9 +39,11 @@ Test the following RPCs: """ from framework.wallet import Wallet +from framework.daemon import Daemon class WalletAddressTest(): def run_test(self): + self.reset() self.create() self.check_main_address() self.check_keys() @@ -49,6 +51,12 @@ class WalletAddressTest(): self.open_close() self.languages() + def reset(self): + print 'Resetting blockchain' + daemon = Daemon() + daemon.pop_blocks(1000) + daemon.flush_txpool() + def create(self): print 'Creating wallet' wallet = Wallet() |