integration test fixes

This commit is contained in:
Lex Berezhny 2019-01-23 23:57:13 -05:00
parent 79e4767f69
commit ed6537db79
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ class CLIIntegrationTest(AsyncioTestCase):
await self.daemon.start() await self.daemon.start()
async def asyncTearDown(self): async def asyncTearDown(self):
await self.daemon.shutdown() await self.daemon.stop()
def test_cli_status_command_with_auth(self): def test_cli_status_command_with_auth(self):
actual_output = StringIO() actual_output = StringIO()

View file

@ -65,13 +65,13 @@ class CommandTestCase(IntegrationTestCase):
self.daemon = Daemon(conf, ComponentManager( self.daemon = Daemon(conf, ComponentManager(
conf, skip_components=conf.components_to_skip, wallet=wallet_maker conf, skip_components=conf.components_to_skip, wallet=wallet_maker
)) ))
await self.daemon.setup() await self.daemon.initialize()
self.manager.old_db = self.daemon.storage self.manager.old_db = self.daemon.storage
async def asyncTearDown(self): async def asyncTearDown(self):
await super().asyncTearDown() await super().asyncTearDown()
self.wallet_component._running = False self.wallet_component._running = False
await self.daemon.shutdown() await self.daemon.stop()
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. """