From 8945e7a792f0ed11c5094bd3b24decb2f9c944be Mon Sep 17 00:00:00 2001 From: Jonah Gao Date: Thu, 10 Oct 2024 18:53:03 +0800 Subject: [PATCH] Fix clippy error on wasmtest (#12844) --- datafusion/wasmtest/Cargo.toml | 3 ++- datafusion/wasmtest/src/lib.rs | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/datafusion/wasmtest/Cargo.toml b/datafusion/wasmtest/Cargo.toml index 46e157aecfd9..2440244d08c3 100644 --- a/datafusion/wasmtest/Cargo.toml +++ b/datafusion/wasmtest/Cargo.toml @@ -60,4 +60,5 @@ wasm-bindgen = "0.2.87" wasm-bindgen-futures = "0.4.40" [dev-dependencies] -wasm-bindgen-test = "0.3" +tokio = { workspace = true } +wasm-bindgen-test = "0.3.44" diff --git a/datafusion/wasmtest/src/lib.rs b/datafusion/wasmtest/src/lib.rs index 0f24449cbed3..085064d16d94 100644 --- a/datafusion/wasmtest/src/lib.rs +++ b/datafusion/wasmtest/src/lib.rs @@ -87,13 +87,14 @@ mod test { wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); - #[wasm_bindgen_test] + #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)] + #[cfg_attr(not(target_arch = "wasm32"), allow(dead_code))] fn datafusion_test() { basic_exprs(); basic_parse(); } - #[wasm_bindgen_test] + #[wasm_bindgen_test(unsupported = tokio::test)] async fn basic_execute() { let sql = "SELECT 2 + 2;";