From c90338ed8af26d1c864d8d54d0df29e4596c591e Mon Sep 17 00:00:00 2001 From: hatim boufnichel Date: Thu, 25 Apr 2024 20:10:09 +0200 Subject: [PATCH] up --- src/tests/networkSetup.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/tests/networkSetup.ts b/src/tests/networkSetup.ts index e8150339..6243ac06 100644 --- a/src/tests/networkSetup.ts +++ b/src/tests/networkSetup.ts @@ -20,11 +20,22 @@ export const setupNetwork = async () => { await tryUntil(async i => { const info = await alice.GetInfo() if (!info.syncedToChain) { - throw new Error("not synced to chain") + throw new Error("alice not synced to chain") } if (!info.syncedToGraph) { //await lnd.ConnectPeer({}) - throw new Error("not synced to graph") + throw new Error("alice not synced to graph") + } + }, 15, 2000) + + await tryUntil(async i => { + const info = await bob.GetInfo() + if (!info.syncedToChain) { + throw new Error("bob not synced to chain") + } + if (!info.syncedToGraph) { + //await lnd.ConnectPeer({}) + throw new Error("bob not synced to graph") } }, 15, 2000) }