itest+lntest: add a dedicated timeout for sending payments

This commit adds a new timeout `PaymentTimeout` that's used when sending
payments. A potential bug is also marked in the test.
This commit is contained in:
yyforyongyu committed 2023-02-23 21:56:11 +08:00
1 parent ae6e109f35
commit d5af76cb29
7 files changed
+27 -7

No files matched your search

+2 -2
View File
@@ -1294,7 +1294,7 @@ func (h *HarnessTest) completePaymentRequestsAssertStatus(hn *node.HarnessNode,
send := func(payReq string) {
req := &routerrpc.SendPaymentRequest{
PaymentRequest: payReq,
TimeoutSeconds: defaultPaymentTimeout,
TimeoutSeconds: int32(wait.PaymentTimeout.Seconds()),
FeeLimitMsat: noFeeLimitMsat,
}
stream := hn.RPC.SendPayment(req)
@@ -1310,7 +1310,7 @@ func (h *HarnessTest) completePaymentRequestsAssertStatus(hn *node.HarnessNode,
}
// Wait for all payments to report the expected status.
timer := time.After(DefaultTimeout)
timer := time.After(wait.PaymentTimeout)
select {
case stream := <-results:
h.AssertPaymentStatusFromStream(stream, status)