@@ -1711,7 +1711,7 @@ impl OutboundPayments {
17111711 let event = events:: Event :: PaymentFailed {
17121712 payment_id : * payment_id,
17131713 payment_hash : None ,
1714- reason : None ,
1714+ reason : Some ( PaymentFailureReason :: InvoiceRequestExpired ) ,
17151715 } ;
17161716 pending_events. push_back ( ( event, None ) ) ;
17171717 false
@@ -2205,7 +2205,11 @@ mod tests {
22052205 assert ! ( !pending_events. lock( ) . unwrap( ) . is_empty( ) ) ;
22062206 assert_eq ! (
22072207 pending_events. lock( ) . unwrap( ) . pop_front( ) ,
2208- Some ( ( Event :: PaymentFailed { payment_id, payment_hash: None , reason: None } , None ) ) ,
2208+ Some ( ( Event :: PaymentFailed {
2209+ payment_id,
2210+ payment_hash: None ,
2211+ reason: Some ( PaymentFailureReason :: InvoiceRequestExpired ) ,
2212+ } , None ) ) ,
22092213 ) ;
22102214 assert ! ( pending_events. lock( ) . unwrap( ) . is_empty( ) ) ;
22112215
@@ -2254,7 +2258,11 @@ mod tests {
22542258 assert ! ( !pending_events. lock( ) . unwrap( ) . is_empty( ) ) ;
22552259 assert_eq ! (
22562260 pending_events. lock( ) . unwrap( ) . pop_front( ) ,
2257- Some ( ( Event :: PaymentFailed { payment_id, payment_hash: None , reason: None } , None ) ) ,
2261+ Some ( ( Event :: PaymentFailed {
2262+ payment_id,
2263+ payment_hash: None ,
2264+ reason: Some ( PaymentFailureReason :: InvoiceRequestExpired ) ,
2265+ } , None ) ) ,
22582266 ) ;
22592267 assert ! ( pending_events. lock( ) . unwrap( ) . is_empty( ) ) ;
22602268
0 commit comments