Skip to content

Commit 137aa8e

Browse files
committed
f - make test failure more understandable
1 parent 7183fec commit 137aa8e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,11 +1805,9 @@ mod tests {
18051805
outbound_payments.remove_stale_payments(&pending_events);
18061806
assert!(!outbound_payments.has_pending_payments());
18071807
assert!(!pending_events.lock().unwrap().is_empty());
1808-
assert!(
1809-
matches!(
1810-
pending_events.lock().unwrap().pop_front(),
1811-
Some((Event::InvoiceRequestFailed { payment_id }, None)) if payment_id == PaymentId([0; 32]),
1812-
)
1808+
assert_eq!(
1809+
pending_events.lock().unwrap().pop_front(),
1810+
Some((Event::InvoiceRequestFailed { payment_id }, None)),
18131811
);
18141812
assert!(pending_events.lock().unwrap().is_empty());
18151813

0 commit comments

Comments
 (0)