Skip to content

Commit 486210f

Browse files
committed
f - fix non-deterministic payment_id check
1 parent 1ed92a2 commit 486210f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/offers_tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,8 @@ fn fails_authentication_when_handling_invoice_for_refund() {
13691369
assert_eq!(invoice, expected_invoice);
13701370

13711371
expect_recent_payment!(david, RecentPaymentDetails::AwaitingInvoice, payment_id);
1372+
david.node.abandon_payment(payment_id);
1373+
get_event!(david, Event::InvoiceRequestFailed);
13721374

13731375
// Send the invoice to David using an invalid blinded path.
13741376
let invalid_path = refund.paths().first().unwrap().clone();

0 commit comments

Comments
 (0)