tearDown() should run before daemon shutdown

This commit is contained in:
Lex Berezhny 2018-11-07 17:04:49 -05:00
parent b2117fddab
commit 64898d43f1

View file

@ -163,9 +163,9 @@ class CommandTestCase(IntegrationTestCase):
self.manager.old_db = self.daemon.storage self.manager.old_db = self.daemon.storage
async def tearDown(self): async def tearDown(self):
await super().tearDown()
self.wallet_component._running = False self.wallet_component._running = False
await d2f(self.daemon._shutdown()) await d2f(self.daemon._shutdown())
await super().tearDown()
async def confirm_tx(self, txid): async def confirm_tx(self, txid):
""" Wait for tx to be in mempool, then generate a block, wait for tx to be in a block. """ """ Wait for tx to be in mempool, then generate a block, wait for tx to be in a block. """