Skip to content

Commit cdaa0fd

Browse files
committed
f lulz variable name
1 parent b11f251 commit cdaa0fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,19 +1487,19 @@ macro_rules! expect_payment_failed {
14871487
}
14881488

14891489
pub fn expect_payment_failed_conditions<'a, 'b, 'c, 'd, 'e>(
1490-
node: &'a Node<'b, 'c, 'd>, expected_payment_hash: PaymentHash, rejected_by_dest: bool,
1490+
node: &'a Node<'b, 'c, 'd>, expected_payment_hash: PaymentHash, expected_rejected_by_dest: bool,
14911491
conditions: PaymentFailedConditions<'e>
14921492
) {
14931493
let mut events = node.node.get_and_clear_pending_events();
14941494
assert_eq!(events.len(), 1);
14951495
let expected_payment_id = match events.pop().unwrap() {
1496-
Event::PaymentPathFailed { payment_hash, rejected_by_dest:lulz, path, retry, payment_id, network_update,
1496+
Event::PaymentPathFailed { payment_hash, rejected_by_dest, path, retry, payment_id, network_update,
14971497
#[cfg(test)]
14981498
error_code,
14991499
#[cfg(test)]
15001500
error_data, .. } => {
15011501
assert_eq!(payment_hash, expected_payment_hash, "unexpected payment_hash");
1502-
assert_eq!(rejected_by_dest, lulz, "unexpected rejected_by_dest value");
1502+
assert_eq!(rejected_by_dest, expected_rejected_by_dest, "unexpected rejected_by_dest value");
15031503
assert!(retry.is_some(), "expected retry.is_some()");
15041504
assert_eq!(retry.as_ref().unwrap().final_value_msat, path.last().unwrap().fee_msat, "Retry amount should match last hop in path");
15051505
assert_eq!(retry.as_ref().unwrap().payment_params.payee_pubkey, path.last().unwrap().pubkey, "Retry payee node_id should match last hop in path");

0 commit comments

Comments
 (0)