Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
boufni95 committed Apr 25, 2024
1 parent dfcdb1b commit c383c01
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/tests/networkSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,22 @@ export const setupNetwork = async () => {
await tryUntil<void>(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<void>(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)
}
Expand Down

0 comments on commit c383c01

Please sign in to comment.