Skip to content

Commit 931e33c

Browse files
committed
f add comment requested by val
1 parent b10b766 commit 931e33c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,8 @@ pub fn send_along_route_with_secret<'a, 'b, 'c>(origin_node: &Node<'a, 'b, 'c>,
797797

798798
if idx == expected_route.len() - 1 {
799799
let events_2 = node.node.get_and_clear_pending_events();
800+
// Once we've gotten through all the HTLCs, the last one should result in a
801+
// PaymentReceived (but each previous one should not!).
800802
if path_idx == expected_paths.len() - 1 {
801803
assert_eq!(events_2.len(), 1);
802804
match events_2[0] {

0 commit comments

Comments
 (0)