mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-22 15:57:49 +02:00
itest: fix context leak in testZeroConfReorg
This commit is contained in:
@@ -1041,9 +1041,8 @@ 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(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user