From ab4c20562c665ccdb66570430f53e0221b2bf9f8 Mon Sep 17 00:00:00 2001 From: kozabrada123 <“kozabrada123@users.noreply.github.com”> Date: Fri, 5 May 2023 20:28:47 +0200 Subject: [PATCH] Remove the dumb test stuff I left in --- src/gateway.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/gateway.rs b/src/gateway.rs index 08e6ad5..9c961ed 100644 --- a/src/gateway.rs +++ b/src/gateway.rs @@ -523,18 +523,8 @@ mod example { #[tokio::test] async fn test_gateway() { - let mut gateway = Gateway::new("wss://localhost:3001/".to_string()) + let mut gateway = Gateway::new("ws://localhost:3001/".to_string()) .await .unwrap(); - - let mut test_indetify = GatewayIdentifyPayload::default(); - test_indetify.intents = 1000; - test_indetify.token = "haaaaeeuuuggghh".to_string(); - test_indetify.properties = GatewayIdentifyConnectionProps { os: "Linux".to_string(), browser: "Very Poggers Discord Client".to_string(), device: "Some device idfk".to_string()}; - gateway.send_identify(test_indetify).await; - - loop { - gateway.update_events().await; - } } }