itest: fix test flake in testZeroConfReorg

This commit is contained in:
yyforyongyu
2023-01-31 21:22:54 +08:00
parent eb57de2f0e
commit 0c50d4379f
2 changed files with 31 additions and 28 deletions

View File

@@ -682,3 +682,17 @@ func (h *HarnessRPC) SendCustomMessage(
return resp
}
// GetChanInfo makes a RPC call to the node's GetChanInfo and returns the
// response.
func (h *HarnessRPC) GetChanInfo(
req *lnrpc.ChanInfoRequest) *lnrpc.ChannelEdge {
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
defer cancel()
resp, err := h.LN.GetChanInfo(ctxt, req)
h.NoError(err, "GetChanInfo")
return resp
}