From 15ffbb6c4b8be1dace182ff9b16c0b2f8cbd29f5 Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Mon, 21 Nov 2022 18:05:42 +0100 Subject: [PATCH] fix(ci): wasm tests with cache + disable logging (#722) * fix(ci): wasm tests with cache * disable logging in wasm tests --- .github/workflows/rust.yml | 3 +++ testing/wasm-tests/tests/wasm.rs | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e86d664851..c6912560c0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -185,6 +185,9 @@ jobs: - name: Install chrome uses: browser-actions/setup-chrome@latest + - name: Rust Cache + uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 + - name: Download Substrate run: | curl $SUBSTRATE_URL --output substrate --location diff --git a/testing/wasm-tests/tests/wasm.rs b/testing/wasm-tests/tests/wasm.rs index 310d6da311..eed10af565 100644 --- a/testing/wasm-tests/tests/wasm.rs +++ b/testing/wasm-tests/tests/wasm.rs @@ -7,15 +7,8 @@ wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); /// Run the tests by `$ wasm-pack test --firefox --headless` -fn init_tracing() { - console_error_panic_hook::set_once(); - tracing_wasm::set_as_global_default(); -} - #[wasm_bindgen_test] async fn wasm_ws_transport_works() { - init_tracing(); - let client = subxt::client::OnlineClient::::from_url("ws://127.0.0.1:9944") .await