fix integration tests

This commit is contained in:
Lex Berezhny 2019-01-22 12:11:28 -05:00
parent 1ae1137005
commit 48533df523

View file

@ -464,9 +464,6 @@ class Daemon(metaclass=JSONRPCServerType):
os.makedirs(self.conf.download_dir)
async def start(self):
self.ensure_data_dir()
self.ensure_wallet_dir()
self.ensure_download_dir()
try:
self.server = await asyncio.get_event_loop().create_server(
self.handler, self.conf.api_host, self.conf.api_port
@ -487,6 +484,10 @@ class Daemon(metaclass=JSONRPCServerType):
log.info("Starting lbrynet-daemon")
log.info("Platform: %s", json.dumps(system_info.get_platform()))
self.ensure_data_dir()
self.ensure_wallet_dir()
self.ensure_download_dir()
if not self.analytics_manager.is_started:
self.analytics_manager.start()
await self.analytics_manager.send_server_startup()