Skip to content

Commit 3cf6d0a

Browse files
committed
Fix test variable typos
1 parent 5f28580 commit 3cf6d0a

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
@@ -5396,11 +5396,11 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
53965396

53975397
let as_events = nodes[0].node.get_and_clear_pending_events();
53985398
assert_eq!(as_events.len(), if announce_latest { 10 } else { 6 });
5399-
let mut as_failds = new_hash_set();
5399+
let mut as_faileds = new_hash_set();
54005400
let mut as_updates = 0;
54015401
for event in as_events.iter() {
54025402
if let &Event::PaymentPathFailed { ref payment_hash, ref payment_failed_permanently, ref failure, .. } = event {
5403-
assert!(as_failds.insert(*payment_hash));
5403+
assert!(as_faileds.insert(*payment_hash));
54045404
if *payment_hash != payment_hash_2 {
54055405
assert_eq!(*payment_failed_permanently, deliver_last_raa);
54065406
} else {
@@ -5412,21 +5412,21 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
54125412
} else if let &Event::PaymentFailed { .. } = event {
54135413
} else { panic!("Unexpected event"); }
54145414
}
5415-
assert!(as_failds.contains(&payment_hash_1));
5416-
assert!(as_failds.contains(&payment_hash_2));
5415+
assert!(as_faileds.contains(&payment_hash_1));
5416+
assert!(as_faileds.contains(&payment_hash_2));
54175417
if announce_latest {
5418-
assert!(as_failds.contains(&payment_hash_3));
5419-
assert!(as_failds.contains(&payment_hash_5));
5418+
assert!(as_faileds.contains(&payment_hash_3));
5419+
assert!(as_faileds.contains(&payment_hash_5));
54205420
}
5421-
assert!(as_failds.contains(&payment_hash_6));
5421+
assert!(as_faileds.contains(&payment_hash_6));
54225422

54235423
let bs_events = nodes[1].node.get_and_clear_pending_events();
54245424
assert_eq!(bs_events.len(), if announce_latest { 8 } else { 6 });
5425-
let mut bs_failds = new_hash_set();
5425+
let mut bs_faileds = new_hash_set();
54265426
let mut bs_updates = 0;
54275427
for event in bs_events.iter() {
54285428
if let &Event::PaymentPathFailed { ref payment_hash, ref payment_failed_permanently, ref failure, .. } = event {
5429-
assert!(bs_failds.insert(*payment_hash));
5429+
assert!(bs_faileds.insert(*payment_hash));
54305430
if *payment_hash != payment_hash_1 && *payment_hash != payment_hash_5 {
54315431
assert_eq!(*payment_failed_permanently, deliver_last_raa);
54325432
} else {
@@ -5438,12 +5438,12 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
54385438
} else if let &Event::PaymentFailed { .. } = event {
54395439
} else { panic!("Unexpected event"); }
54405440
}
5441-
assert!(bs_failds.contains(&payment_hash_1));
5442-
assert!(bs_failds.contains(&payment_hash_2));
5441+
assert!(bs_faileds.contains(&payment_hash_1));
5442+
assert!(bs_faileds.contains(&payment_hash_2));
54435443
if announce_latest {
5444-
assert!(bs_failds.contains(&payment_hash_4));
5444+
assert!(bs_faileds.contains(&payment_hash_4));
54455445
}
5446-
assert!(bs_failds.contains(&payment_hash_5));
5446+
assert!(bs_faileds.contains(&payment_hash_5));
54475447

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

0 commit comments

Comments
 (0)