functional_tests: reset blockchain on test start
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user