@@ -2430,7 +2430,6 @@ mod tests {
24302430 use crate :: ln:: channelmanager:: { PaymentId , RecipientOnionFields } ;
24312431 use crate :: ln:: inbound_payment:: ExpandedKey ;
24322432 use crate :: types:: features:: { Bolt12InvoiceFeatures , ChannelFeatures , NodeFeatures } ;
2433- use crate :: ln:: msgs:: { ErrorAction , LightningError } ;
24342433 use crate :: ln:: outbound_payment:: { Bolt12PaymentError , OutboundPayments , PendingOutboundPayment , Retry , RetryableSendFailure , StaleExpiration } ;
24352434 #[ cfg( feature = "std" ) ]
24362435 use crate :: offers:: invoice:: DEFAULT_RELATIVE_EXPIRY ;
@@ -2532,8 +2531,7 @@ mod tests {
25322531 let payment_params = PaymentParameters :: from_node_id (
25332532 PublicKey :: from_secret_key ( & secp_ctx, & SecretKey :: from_slice ( & [ 42 ; 32 ] ) . unwrap ( ) ) , 0 ) ;
25342533 let route_params = RouteParameters :: from_payment_params_and_value ( payment_params, 0 ) ;
2535- router. expect_find_route ( route_params. clone ( ) ,
2536- Err ( LightningError { err : String :: new ( ) , action : ErrorAction :: IgnoreError } ) ) ;
2534+ router. expect_find_route ( route_params. clone ( ) , Err ( "" ) ) ;
25372535
25382536 let pending_events = Mutex :: new ( VecDeque :: new ( ) ) ;
25392537 if on_retry {
@@ -2863,13 +2861,11 @@ mod tests {
28632861 ) ;
28642862 assert ! ( outbound_payments. has_pending_payments( ) ) ;
28652863
2866- router. expect_find_route (
2867- RouteParameters :: from_payment_params_and_value (
2868- PaymentParameters :: from_bolt12_invoice ( & invoice) ,
2869- invoice. amount_msats ( ) ,
2870- ) ,
2871- Err ( LightningError { err : String :: new ( ) , action : ErrorAction :: IgnoreError } ) ,
2864+ let route_params = RouteParameters :: from_payment_params_and_value (
2865+ PaymentParameters :: from_bolt12_invoice ( & invoice) ,
2866+ invoice. amount_msats ( ) ,
28722867 ) ;
2868+ router. expect_find_route ( route_params, Err ( "" ) ) ;
28732869
28742870 assert_eq ! (
28752871 outbound_payments. send_payment_for_bolt12_invoice(
0 commit comments