@@ -1711,7 +1711,7 @@ impl OutboundPayments {
1711
1711
let event = events:: Event :: PaymentFailed {
1712
1712
payment_id : * payment_id,
1713
1713
payment_hash : None ,
1714
- reason : None ,
1714
+ reason : Some ( PaymentFailureReason :: InvoiceRequestExpired ) ,
1715
1715
} ;
1716
1716
pending_events. push_back ( ( event, None ) ) ;
1717
1717
false
@@ -2205,7 +2205,11 @@ mod tests {
2205
2205
assert ! ( !pending_events. lock( ) . unwrap( ) . is_empty( ) ) ;
2206
2206
assert_eq ! (
2207
2207
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 ) ) ,
2209
2213
) ;
2210
2214
assert ! ( pending_events. lock( ) . unwrap( ) . is_empty( ) ) ;
2211
2215
@@ -2254,7 +2258,11 @@ mod tests {
2254
2258
assert ! ( !pending_events. lock( ) . unwrap( ) . is_empty( ) ) ;
2255
2259
assert_eq ! (
2256
2260
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 ) ) ,
2258
2266
) ;
2259
2267
assert ! ( pending_events. lock( ) . unwrap( ) . is_empty( ) ) ;
2260
2268
0 commit comments