fix channel import test to wait for address subscription tasks to finish before looking up channel

This commit is contained in:
Lex Berezhny 2019-09-13 09:43:52 -04:00
parent f06192601c
commit 063eeb34ec

View file

@ -2317,6 +2317,7 @@ class Daemon(metaclass=JSONRPCServerType):
})
if self.ledger.network.is_connected:
await self.ledger.subscribe_account(account)
await self.ledger._update_tasks.done.wait()
# Case 3: the holding address has changed and we can't create or find an account for it
else:
raise Exception(