itest: assert payment status after sending

This commit is contained in:
yyforyongyu committed 2024-12-20 17:54:12 +08:00
1 parent 425877e745
commit 36a87ad5f4
8 files changed
+32 -35

No files matched your search

+4 -2
View File
@@ -632,8 +632,10 @@ func testRejectHTLC(ht *lntest.HarnessTest) {
TimeoutSeconds: 60,
FeeLimitMsat: noFeeLimitMsat,
}
payStream := alice.RPC.SendPayment(paymentReq)
ht.AssertPaymentStatusFromStream(payStream, lnrpc.Payment_FAILED)
ht.SendPaymentAssertFail(
alice, paymentReq,
lnrpc.PaymentFailureReason_FAILURE_REASON_NO_ROUTE,
)
ht.AssertLastHTLCError(alice, lnrpc.Failure_CHANNEL_DISABLED)