itest: fix test flake in testZeroConfReorg

This commit is contained in:
yyforyongyu committed 2023-02-24 01:35:16 +08:00
1 parent eb57de2f0e
commit 0c50d4379f
2 files changed
+31 -28

No files matched your search

+14
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
}