From 90ff4d84bb032715dd418d890e12f57aeab8029e Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Tue, 6 Aug 2024 11:28:19 +0800 Subject: [PATCH] Test: test MonoioRuntime with Suite::test_all() --- rt-monoio/src/lib.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/rt-monoio/src/lib.rs b/rt-monoio/src/lib.rs index 09476371e..62441f0cd 100644 --- a/rt-monoio/src/lib.rs +++ b/rt-monoio/src/lib.rs @@ -401,3 +401,16 @@ mod mutex_mod { } } } + +#[cfg(test)] +mod tests { + use openraft::testing::runtime::Suite; + + use super::*; + + #[test] + fn test_monoio_rt() { + let mut rt = monoio::RuntimeBuilder::::new().enable_all().build().unwrap(); + rt.block_on(Suite::::test_all()); + } +}