]> git.bitcoin.ninja Git - rust-lightning/commit
Use `check_added_monitors` test utility in invoice utils tests
authorMatt Corallo <git@bluematt.me>
Fri, 9 Aug 2024 13:20:35 +0000 (13:20 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Aug 2024 12:54:59 +0000 (12:54 +0000)
commit1f01f2ef672ba6054b0cd0ba2606960cb550ab0c
treefce0bfaf5872fcb6359b32ae3865fa4a147abab3
parent3b3774ee693c417b5131f79b0c34cca798b4774a
Use `check_added_monitors` test utility in invoice utils tests

In a coming commit, the `lightning-invoice::utils` module will move
to the `lightning` crate, causing its tests to be included in the
global lockorder tests done in that crate. This should be fine,
except that the `lightning-invoice::utils` module currently holds
the `added_monitors` lock too long causing lockorder violations.

Instead, this commit replaces the legacy monitors-added test with
the `check_added_monitors` test utility.
lightning-invoice/src/utils.rs