Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Jul 4, 2022
1 parent 36a243e commit 7238559
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lightning/src/routing/router.rs
Expand Up @@ -5735,8 +5735,7 @@ mod tests {
};
scorer.set_manual_penalty(&NodeId::from_pubkey(&nodes[3]), 123);
scorer.set_manual_penalty(&NodeId::from_pubkey(&nodes[4]), 456);
assert_eq!(scorer.channel_penalty_msat(42, &NodeId::from_pubkey(&nodes[3]), &NodeId::from_pubkey(&nodes[4]), usage), 123);
assert_eq!(scorer.channel_penalty_msat(43, &NodeId::from_pubkey(&nodes[4]), &NodeId::from_pubkey(&nodes[5]), usage), 456);
assert_eq!(scorer.channel_penalty_msat(42, &NodeId::from_pubkey(&nodes[3]), &NodeId::from_pubkey(&nodes[4]), usage), 456);

// Then check we can get a normal route
let payment_params = PaymentParameters::from_node_id(nodes[10]);
Expand Down

0 comments on commit 7238559

Please sign in to comment.