diff --git a/tokio/src/runtime/coop.rs b/tokio/src/runtime/coop.rs index d94b940d475..15a4d98c08d 100644 --- a/tokio/src/runtime/coop.rs +++ b/tokio/src/runtime/coop.rs @@ -246,18 +246,14 @@ 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()) } - #[self::test] + #[test] fn budgeting() { use futures::future::poll_fn; use tokio_test::*;