From 4ab5186cb61ab58a48d6966728599c0d6dacd282 Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:36:15 +0100 Subject: [PATCH] eee --- Cargo.toml | 1 + tests/gateway.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index bcde77c..41f06a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,6 +69,7 @@ hostname = "0.3.1" getrandom = { version = "0.2.12", features = ["js"] } ws_stream_wasm = "0.7.4" wasm-bindgen-futures = "0.4.39" +wasm-glue = "0.1.0" [dev-dependencies] lazy_static = "1.4.0" diff --git a/tests/gateway.rs b/tests/gateway.rs index 5396333..e36c090 100644 --- a/tests/gateway.rs +++ b/tests/gateway.rs @@ -26,6 +26,10 @@ async fn test_gateway_establish() { async fn test_gateway_authenticate() { let bundle = common::setup().await; + // Make println! work + #[cfg(target_arch = "wasm32")] + wasm_glue::hook(); + let gateway: GatewayHandle = Gateway::spawn(bundle.urls.wss.clone()).await.unwrap(); let mut identify = types::GatewayIdentifyPayload::common();