diff options
Diffstat (limited to 'tokio-test')
-rw-r--r-- | tokio-test/src/io.rs | 2 | ||||
-rw-r--r-- | tokio-test/src/lib.rs | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tokio-test/src/io.rs b/tokio-test/src/io.rs index 5a2b74bf..e6a243a1 100644 --- a/tokio-test/src/io.rs +++ b/tokio-test/src/io.rs @@ -1,3 +1,5 @@ +#![cfg(not(loom))] + //! A mock type implementing [`AsyncRead`] and [`AsyncWrite`]. //! //! diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs index bdd4a9f9..d70a0c22 100644 --- a/tokio-test/src/lib.rs +++ b/tokio-test/src/lib.rs @@ -14,6 +14,7 @@ //! Tokio and Futures based testing utilites pub mod io; + mod macros; pub mod task; @@ -27,7 +28,11 @@ pub mod task; pub fn block_on<F: std::future::Future>(future: F) -> F::Output { use tokio::runtime; - let mut rt = runtime::Builder::new().basic_scheduler().build().unwrap(); + let mut rt = runtime::Builder::new() + .basic_scheduler() + .enable_all() + .build() + .unwrap(); rt.block_on(future) } |