Skip to content

Commit 9d35ca2

Browse files
NobodyXutaiki-e
andcommitted
Update tokio/src/runtime/coop.rs
Co-authored-by: Taiki Endo <[email protected]> Signed-off-by: Jiahao XU <[email protected]>
1 parent 4be9109 commit 9d35ca2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tokio/src/runtime/coop.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -246,18 +246,14 @@ cfg_coop! {
246246
mod test {
247247
use super::*;
248248

249-
cfg_is_wasm_not_wasi! {
250-
use wasm_bindgen_test::wasm_bindgen_test as test;
251-
}
252-
253-
#[cfg(not(all(target_family = "wasm", not(target_os = "wasi"))))]
254-
use std::prelude::v1::test;
249+
#[cfg(all(target_family = "wasm", not(target_os = "wasi")))]
250+
use wasm_bindgen_test::wasm_bindgen_test as test;
255251

256252
fn get() -> Budget {
257253
context::budget(|cell| cell.get()).unwrap_or(Budget::unconstrained())
258254
}
259255

260-
#[self::test]
256+
#[test]
261257
fn budgeting() {
262258
use futures::future::poll_fn;
263259
use tokio_test::*;

0 commit comments

Comments
 (0)