rust-lightning/lightning-net-tokio
Matt Corallo 7a9bea1bdd Use test/_test_utils to enable single-threaded debug assertions
We have a number of debug assertions which are expected to never
fire when running in a single thread. This is just fine in tests,
and gives us good coverage of our lockorder requirements, but is
not-irregularly surprising to users, who may run with their own
debug assertions in test environments.

Instead, we gate these checks by the `cfg(test)` setting as well as
the `_test_utils` feature, ensuring they run in our own tests, but
not downstream tests.
2023-01-17 23:47:45 +00:00
..
src Use test/_test_utils to enable single-threaded debug assertions 2023-01-17 23:47:45 +00:00
Cargo.toml Always set _test_utils when building lightning for some tests 2023-01-17 23:47:45 +00:00