mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-20 04:21:37 +02:00
itest: fix context leak in testZeroConfReorg
This commit is contained in:
@@ -1041,11 +1041,10 @@ func testZeroConfReorg(ht *lntest.HarnessTest) {
|
|||||||
ht.WaitForNodeBlockHeight(carol, tempMinerHeight)
|
ht.WaitForNodeBlockHeight(carol, tempMinerHeight)
|
||||||
|
|
||||||
err = wait.Predicate(func() bool {
|
err = wait.Predicate(func() bool {
|
||||||
ctxt, _ := context.WithTimeout(ctxb, defaultTimeout)
|
_, err = carol.RPC.LN.GetChanInfo(
|
||||||
|
ht.Context(), &lnrpc.ChanInfoRequest{
|
||||||
_, err = carol.RPC.LN.GetChanInfo(ctxt, &lnrpc.ChanInfoRequest{
|
ChanId: aliasmgr.StartingAlias.ToUint64(),
|
||||||
ChanId: aliasmgr.StartingAlias.ToUint64(),
|
})
|
||||||
})
|
|
||||||
|
|
||||||
return err == nil
|
return err == nil
|
||||||
}, defaultTimeout)
|
}, defaultTimeout)
|
||||||
|
Reference in New Issue
Block a user