mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
functional_tests: reset blockchain on test start
This commit is contained in:
parent
375fde9454
commit
aba2b2e7a2
8 changed files with 57 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue