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