rust-lightning/lightning
Matt Corallo e34519b31a Correct peer_handler::test_process_events_multithreaded
This test was added some time ago in
0c034e9a82, but never made any sense.
`PeerManager::process_events` will go around its loop as many times
is required to ensure we've always processed all events which were
pending prior to a `process_events` call, so having a test that
checks that we never go around more than twice is obviously broken.

And, indeed, in CI this tests fails with some regularity.

Instead, the test here is changed to ensure that we detectably go
around the loop again at least once.

Fixes #2385
2024-08-19 21:14:27 +00:00
..
src Correct peer_handler::test_process_events_multithreaded 2024-08-19 21:14:27 +00:00
Cargo.toml Remove the std feature implications from the lightning crate 2024-08-19 15:09:40 +00:00