mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
itest: fix test flake in testZeroConfReorg
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user