Skip to content

Commit

Permalink
fix: old payment test
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Mar 16, 2024
1 parent d0605a8 commit 779729b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/payment/payment_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ mod tests {
let preimage = Some(PaymentPreimage([43u8; 32]));
let secret = Some(PaymentSecret([44u8; 32]));
let amount_msat = Some(45_000_000);
let bolt11_invoice = "bolt11_invoice";

// Test `Bolt11` de/ser
{
Expand Down Expand Up @@ -504,11 +503,10 @@ mod tests {
);

match bolt11_decoded.kind {
PaymentKind::Bolt11 { hash: h, preimage: p, secret: s, bolt11_invoice: i } => {
PaymentKind::Bolt11 { hash: h, preimage: p, secret: s, bolt11_invoice: None } => {
assert_eq!(hash, h);
assert_eq!(preimage, p);
assert_eq!(secret, s);
assert_eq!(Some(bolt11_invoice.to_string()), i);
},
_ => {
panic!("Unexpected kind!");
Expand Down

0 comments on commit 779729b

Please sign in to comment.