@@ -2430,7 +2430,6 @@ mod tests {
2430
2430
use crate :: ln:: channelmanager:: { PaymentId , RecipientOnionFields } ;
2431
2431
use crate :: ln:: inbound_payment:: ExpandedKey ;
2432
2432
use crate :: types:: features:: { Bolt12InvoiceFeatures , ChannelFeatures , NodeFeatures } ;
2433
- use crate :: ln:: msgs:: { ErrorAction , LightningError } ;
2434
2433
use crate :: ln:: outbound_payment:: { Bolt12PaymentError , OutboundPayments , PendingOutboundPayment , Retry , RetryableSendFailure , StaleExpiration } ;
2435
2434
#[ cfg( feature = "std" ) ]
2436
2435
use crate :: offers:: invoice:: DEFAULT_RELATIVE_EXPIRY ;
@@ -2532,8 +2531,7 @@ mod tests {
2532
2531
let payment_params = PaymentParameters :: from_node_id (
2533
2532
PublicKey :: from_secret_key ( & secp_ctx, & SecretKey :: from_slice ( & [ 42 ; 32 ] ) . unwrap ( ) ) , 0 ) ;
2534
2533
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 ( "" ) ) ;
2537
2535
2538
2536
let pending_events = Mutex :: new ( VecDeque :: new ( ) ) ;
2539
2537
if on_retry {
@@ -2863,13 +2861,11 @@ mod tests {
2863
2861
) ;
2864
2862
assert ! ( outbound_payments. has_pending_payments( ) ) ;
2865
2863
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 ( ) ,
2872
2867
) ;
2868
+ router. expect_find_route ( route_params, Err ( "" ) ) ;
2873
2869
2874
2870
assert_eq ! (
2875
2871
outbound_payments. send_payment_for_bolt12_invoice(
0 commit comments