itest: assert payment status after sending

This commit is contained in:
yyforyongyu
2024-10-25 03:03:06 +08:00
parent 425877e745
commit 36a87ad5f4
8 changed files with 32 additions and 35 deletions

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)