Skip to content

Commit 6f5a84c

Browse files
committed
f maybe fix tests on ci?
1 parent d4c7343 commit 6f5a84c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lightning/src/ln/chanmon_update_fail_tests.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3978,8 +3978,10 @@ fn test_single_channel_multiple_mpp() {
39783978
let (updates, raa) = get_updates_and_revoke(&nodes[6], &nodes[5].node.get_our_node_id());
39793979
nodes[5].node.handle_update_fulfill_htlc(node_6_id, &updates.update_fulfill_htlcs[0]);
39803980
expect_payment_forwarded!(nodes[5], nodes[2], nodes[6], Some(1000), false, false);
3981-
nodes[5].node.handle_update_fulfill_htlc(node_6_id, &updates.update_fulfill_htlcs[1]);
3982-
expect_payment_forwarded!(nodes[5], nodes[3], nodes[6], Some(1000), false, false);
3981+
if let Some(update) = updates.update_fulfill_htlcs.get(1) {
3982+
nodes[5].node.handle_update_fulfill_htlc(node_6_id, update);
3983+
expect_payment_forwarded!(nodes[5], nodes[3], nodes[6], Some(1000), false, false);
3984+
}
39833985
nodes[5].node.handle_commitment_signed(node_6_id, &updates.commitment_signed);
39843986
nodes[5].node.handle_revoke_and_ack(node_6_id, &raa);
39853987
check_added_monitors(&nodes[5], 4);
@@ -3993,6 +3995,10 @@ fn test_single_channel_multiple_mpp() {
39933995
let (updates, raa) = get_updates_and_revoke(&nodes[6], &nodes[5].node.get_our_node_id());
39943996
nodes[5].node.handle_update_fulfill_htlc(node_6_id, &updates.update_fulfill_htlcs[0]);
39953997
expect_payment_forwarded!(nodes[5], nodes[4], nodes[6], Some(1000), false, false);
3998+
if let Some(update) = updates.update_fulfill_htlcs.get(1) {
3999+
nodes[5].node.handle_update_fulfill_htlc(node_6_id, update);
4000+
expect_payment_forwarded!(nodes[5], nodes[3], nodes[6], Some(1000), false, false);
4001+
}
39964002
nodes[5].node.handle_commitment_signed(node_6_id, &updates.commitment_signed);
39974003
nodes[5].node.handle_revoke_and_ack(node_6_id, &raa);
39984004
check_added_monitors(&nodes[5], 3);

0 commit comments

Comments
 (0)