Skip to content

Commit c9e4410

Browse files
committed
Fix test variable typos
1 parent dedc830 commit c9e4410

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5402,11 +5402,11 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
54025402

54035403
let as_events = nodes[0].node.get_and_clear_pending_events();
54045404
assert_eq!(as_events.len(), if announce_latest { 10 } else { 6 });
5405-
let mut as_failds = new_hash_set();
5405+
let mut as_faileds = new_hash_set();
54065406
let mut as_updates = 0;
54075407
for event in as_events.iter() {
54085408
if let &Event::PaymentPathFailed { ref payment_hash, ref payment_failed_permanently, ref failure, .. } = event {
5409-
assert!(as_failds.insert(*payment_hash));
5409+
assert!(as_faileds.insert(*payment_hash));
54105410
if *payment_hash != payment_hash_2 {
54115411
assert_eq!(*payment_failed_permanently, deliver_last_raa);
54125412
} else {
@@ -5418,21 +5418,21 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
54185418
} else if let &Event::PaymentFailed { .. } = event {
54195419
} else { panic!("Unexpected event"); }
54205420
}
5421-
assert!(as_failds.contains(&payment_hash_1));
5422-
assert!(as_failds.contains(&payment_hash_2));
5421+
assert!(as_faileds.contains(&payment_hash_1));
5422+
assert!(as_faileds.contains(&payment_hash_2));
54235423
if announce_latest {
5424-
assert!(as_failds.contains(&payment_hash_3));
5425-
assert!(as_failds.contains(&payment_hash_5));
5424+
assert!(as_faileds.contains(&payment_hash_3));
5425+
assert!(as_faileds.contains(&payment_hash_5));
54265426
}
5427-
assert!(as_failds.contains(&payment_hash_6));
5427+
assert!(as_faileds.contains(&payment_hash_6));
54285428

54295429
let bs_events = nodes[1].node.get_and_clear_pending_events();
54305430
assert_eq!(bs_events.len(), if announce_latest { 8 } else { 6 });
5431-
let mut bs_failds = new_hash_set();
5431+
let mut bs_faileds = new_hash_set();
54325432
let mut bs_updates = 0;
54335433
for event in bs_events.iter() {
54345434
if let &Event::PaymentPathFailed { ref payment_hash, ref payment_failed_permanently, ref failure, .. } = event {
5435-
assert!(bs_failds.insert(*payment_hash));
5435+
assert!(bs_faileds.insert(*payment_hash));
54365436
if *payment_hash != payment_hash_1 && *payment_hash != payment_hash_5 {
54375437
assert_eq!(*payment_failed_permanently, deliver_last_raa);
54385438
} else {
@@ -5444,12 +5444,12 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
54445444
} else if let &Event::PaymentFailed { .. } = event {
54455445
} else { panic!("Unexpected event"); }
54465446
}
5447-
assert!(bs_failds.contains(&payment_hash_1));
5448-
assert!(bs_failds.contains(&payment_hash_2));
5447+
assert!(bs_faileds.contains(&payment_hash_1));
5448+
assert!(bs_faileds.contains(&payment_hash_2));
54495449
if announce_latest {
5450-
assert!(bs_failds.contains(&payment_hash_4));
5450+
assert!(bs_faileds.contains(&payment_hash_4));
54515451
}
5452-
assert!(bs_failds.contains(&payment_hash_5));
5452+
assert!(bs_faileds.contains(&payment_hash_5));
54535453

54545454
// For each HTLC which was not failed-back by normal process (ie deliver_last_raa), we should
54555455
// get a NetworkUpdate. A should have gotten 4 HTLCs which were failed-back due to

0 commit comments

Comments
 (0)