diff --git a/tokio/src/runtime/coop.rs b/tokio/src/runtime/coop.rs index d94b940d475..8696a7d29ad 100644 --- a/tokio/src/runtime/coop.rs +++ b/tokio/src/runtime/coop.rs @@ -246,12 +246,8 @@ cfg_coop! { mod test { use super::*; - cfg_is_wasm_not_wasi! { - use wasm_bindgen_test::wasm_bindgen_test as test; - } - - #[cfg(not(all(target_family = "wasm", not(target_os = "wasi"))))] - use std::prelude::v1::test; + #[cfg(all(target_family = "wasm", not(target_os = "wasi")))] + use wasm_bindgen_test::wasm_bindgen_test as test; fn get() -> Budget { context::budget(|cell| cell.get()).unwrap_or(Budget::unconstrained())