mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-29 06:52:55 +02:00
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:
@@ -948,7 +948,9 @@ func (h *HarnessTest) AssertNodesNumPendingOpenChannels(a, b *node.HarnessNode,
|
||||
func (h *HarnessTest) AssertPaymentStatusFromStream(stream rpc.PaymentClient,
|
||||
status lnrpc.Payment_PaymentStatus) *lnrpc.Payment {
|
||||
|
||||
return h.assertPaymentStatusWithTimeout(stream, status, DefaultTimeout)
|
||||
return h.assertPaymentStatusWithTimeout(
|
||||
stream, status, wait.PaymentTimeout,
|
||||
)
|
||||
}
|
||||
|
||||
// AssertPaymentSucceedWithTimeout asserts that a payment is succeeded within
|
||||
|
Reference in New Issue
Block a user