Skip to content

Commit

Permalink
fix(ci): wasm tests with cache + disable logging (#722)
Browse files Browse the repository at this point in the history
* fix(ci): wasm tests with cache

* disable logging in wasm tests
  • Loading branch information
niklasad1 authored Nov 21, 2022
1 parent 37392f3 commit 15ffbb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions testing/wasm-tests/tests/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<PolkadotConfig>::from_url("ws://127.0.0.1:9944")
.await
Expand Down

0 comments on commit 15ffbb6

Please sign in to comment.