This commit is contained in:
kozabrada123 2024-01-19 13:36:15 +01:00
parent f86d23bac0
commit 4ab5186cb6
2 changed files with 5 additions and 0 deletions

View File

@ -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"

View File

@ -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();