Skip to content

Commit 0929989

Browse files
committed
f test_threaded_payment_retries test
1 parent 88a95cd commit 0929989

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lightning/src/ln/payment_tests.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,11 +3299,7 @@ fn test_threaded_payment_retries() {
32993299
maybe_announced_channel: true,
33003300
}], blinded_tail: None }
33013301
],
3302-
route_params: Some(RouteParameters {
3303-
payment_params: PaymentParameters::from_node_id(nodes[1].node.get_our_node_id(), TEST_FINAL_CLTV),
3304-
final_value_msat: amt_msat - amt_msat / 1000,
3305-
max_total_routing_fee_msat: Some(500_000),
3306-
}),
3302+
route_params: Some(route_params.clone()),
33073303
};
33083304
nodes[0].router.expect_find_route(route_params.clone(), Ok(route.clone()));
33093305

@@ -3322,6 +3318,7 @@ fn test_threaded_payment_retries() {
33223318

33233319
// from here on out, the retry `RouteParameters` amount will be amt/1000
33243320
route_params.final_value_msat /= 1000;
3321+
route.route_params.as_mut().unwrap().final_value_msat /= 1000;
33253322
route.paths.pop();
33263323

33273324
let end_time = Instant::now() + Duration::from_secs(1);

0 commit comments

Comments
 (0)