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

@@ -508,8 +508,7 @@ func testForwardInterceptorWireRecords(ht *lntest.HarnessTest) {
FeeLimitMsat: noFeeLimitMsat,
FirstHopCustomRecords: customRecords,
}
_ = alice.RPC.SendPayment(sendReq)
ht.SendPaymentAssertInflight(alice, sendReq)
// We start the htlc interceptor with a simple implementation that saves
// all intercepted packets. These packets are held to simulate a
@@ -635,8 +634,7 @@ func testForwardInterceptorRestart(ht *lntest.HarnessTest) {
FeeLimitMsat: noFeeLimitMsat,
FirstHopCustomRecords: customRecords,
}
_ = alice.RPC.SendPayment(sendReq)
ht.SendPaymentAssertInflight(alice, sendReq)
// We start the htlc interceptor with a simple implementation that saves
// all intercepted packets. These packets are held to simulate a