diff --git a/itest/lnd_zero_conf_test.go b/itest/lnd_zero_conf_test.go index a4838165f..eb1bc59bf 100644 --- a/itest/lnd_zero_conf_test.go +++ b/itest/lnd_zero_conf_test.go @@ -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)