test?
This commit is contained in:
parent
c015bf7991
commit
798d001da3
1 changed files with 4 additions and 4 deletions
|
|
@ -23,14 +23,14 @@ export const setupNetwork = async (): Promise<ChainTools> => {
|
|||
}
|
||||
await alice.ConnectPeer({ pubkey: '0232842d81b2423df97aa8a264f8c0811610a736af65afe2e145279f285625c1e4', host: "carol:9735" })
|
||||
await alice.ConnectPeer({ pubkey: '027c50fde118af534ff27e59da722422d2f3e06505c31e94c1b40c112c48a83b1c', host: "dave:9735" })
|
||||
}, 15, 2000)
|
||||
}, 10, 8000)
|
||||
await tryUntil<void>(async i => {
|
||||
const peers = await bob.ListPeers()
|
||||
if (peers.peers.length > 0) {
|
||||
return
|
||||
}
|
||||
await bob.ConnectPeer({ pubkey: '0232842d81b2423df97aa8a264f8c0811610a736af65afe2e145279f285625c1e4', host: "carol:9735" })
|
||||
}, 15, 2000)
|
||||
}, 10, 8000)
|
||||
|
||||
await tryUntil<void>(async i => {
|
||||
const info = await alice.GetInfo()
|
||||
|
|
@ -41,7 +41,7 @@ export const setupNetwork = async (): Promise<ChainTools> => {
|
|||
//await lnd.ConnectPeer({})
|
||||
throw new Error("alice not synced to graph")
|
||||
}
|
||||
}, 15, 2000)
|
||||
}, 10, 8000)
|
||||
|
||||
await tryUntil<void>(async i => {
|
||||
const info = await bob.GetInfo()
|
||||
|
|
@ -52,7 +52,7 @@ export const setupNetwork = async (): Promise<ChainTools> => {
|
|||
//await lnd.ConnectPeer({})
|
||||
throw new Error("bob not synced to graph")
|
||||
}
|
||||
}, 15, 2000)
|
||||
}, 10, 8000)
|
||||
|
||||
alice.Stop()
|
||||
bob.Stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue