]> git.bitcoin.ninja Git - rust-lightning/commit
Replace expect_value_msat with expect_send
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 10 Nov 2021 00:07:23 +0000 (18:07 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Nov 2021 19:57:58 +0000 (13:57 -0600)
commitab9576201d358881583a0327104d798b7f3e4fb0
tree75e0019aff167d2d0fb65a763a3821b197f29a39
parentb4c7370d26a23ccf044b3d0e8b4c344c743433c9
Replace expect_value_msat with expect_send

Modify all InvoicePayer unit tests to use expect_send instead of
expect_value_msat, since the former can discern whether the send was for
an invoice, spontaneous payment, or a retry. Updates tests to set payer
expectations if they weren't already and assert these before returning a
failure.
lightning-invoice/src/payment.rs