Skip to content

Commit

Permalink
f clarify test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Sep 13, 2024
1 parent f4b1c1b commit 3fafbe4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lightning/src/ln/offers_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2319,8 +2319,10 @@ fn no_double_pay_with_stale_channelmanager() {

// Alice receives a duplicate invoice, but the payment should be transitioned to Retryable by now.
nodes[0].onion_messenger.handle_onion_message(bob_id, &invoice_om);
// Previously we would've attempted to pay the invoice a 2nd time, resulting in a PaymentFailed
// event here.
// Previously, Alice would've attempted to pay the invoice a 2nd time. In this test case, this 2nd
// attempt would have resulted in a PaymentFailed event here, since the only channnel between
// Alice and Bob is closed. Since no 2nd attempt should be made, check that no events are
// generated in response to the duplicate invoice.
assert!(nodes[0].node.get_and_clear_pending_events().is_empty());
}

0 comments on commit 3fafbe4

Please sign in to comment.