]> git.bitcoin.ninja Git - rust-lightning/commit
Rewrite failure payment retry tests to avoid perm-fail storage
authorMatt Corallo <git@bluematt.me>
Sun, 10 Sep 2023 22:11:56 +0000 (22:11 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 21 Sep 2023 17:58:47 +0000 (17:58 +0000)
commitf2bb931ef98c38e681b35d0a3583fb65f0d463e0
treefdb597469c3bb7085437655321f57e942d03bcf9
parenta7e3575ccc7cba00f712df6cfe5dab6d9ca17cee
Rewrite failure payment retry tests to avoid perm-fail storage

Two tests in the payment tests currently rely on failing to persist
ChannelMonitorUpdates as their method of failing payments before
they even get out the door.

In the coming commits we'll drop the persist failure error codes,
so here rewrite these tests to rely on trying to send more than is
available in a channel.
lightning/src/ln/payment_tests.rs