Skip to content

Commit 8945e7a

Browse files
authored
Fix clippy error on wasmtest (#12844)
1 parent 58c7085 commit 8945e7a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

datafusion/wasmtest/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ wasm-bindgen = "0.2.87"
6060
wasm-bindgen-futures = "0.4.40"
6161

6262
[dev-dependencies]
63-
wasm-bindgen-test = "0.3"
63+
tokio = { workspace = true }
64+
wasm-bindgen-test = "0.3.44"

datafusion/wasmtest/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,14 @@ mod test {
8787

8888
wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
8989

90-
#[wasm_bindgen_test]
90+
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
91+
#[cfg_attr(not(target_arch = "wasm32"), allow(dead_code))]
9192
fn datafusion_test() {
9293
basic_exprs();
9394
basic_parse();
9495
}
9596

96-
#[wasm_bindgen_test]
97+
#[wasm_bindgen_test(unsupported = tokio::test)]
9798
async fn basic_execute() {
9899
let sql = "SELECT 2 + 2;";
99100

0 commit comments

Comments
 (0)