Skip to main content

rskit_testutil/
concurrency.rs

1/// Use `#[tokio::test(flavor = "multi_thread", worker_threads = 2)]` for tests that exercise concurrent code paths.
2/// Plain `#[tokio::test]` uses a single-threaded runtime and will NOT catch data races.
3pub const CONCURRENCY_TEST_NOTE: &str =
4    "Use #[tokio::test(flavor = \"multi_thread\")] for concurrency tests";