From 063eeb34ec36f0f24db2a3788dc5e480ad8790a9 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 13 Sep 2019 09:43:52 -0400 Subject: [PATCH] fix channel import test to wait for address subscription tasks to finish before looking up channel --- lbry/lbry/extras/daemon/Daemon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbry/lbry/extras/daemon/Daemon.py b/lbry/lbry/extras/daemon/Daemon.py index 86211b266..fb158e055 100644 --- a/lbry/lbry/extras/daemon/Daemon.py +++ b/lbry/lbry/extras/daemon/Daemon.py @@ -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(