From 0cae35e592f710aaf234ef8fc5e80f760a4b9c1c Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Wed, 22 Nov 2023 14:24:10 +0100 Subject: [PATCH] Remove broken test code --- tests/auth.rs | 6 ------ tests/channels.rs | 30 ------------------------------ tests/gateway.rs | 24 ------------------------ tests/guilds.rs | 30 ------------------------------ tests/instance.rs | 6 ------ tests/invites.rs | 6 ------ tests/members.rs | 6 ------ tests/messages.rs | 24 ------------------------ tests/relationships.rs | 24 ------------------------ tests/roles.rs | 12 ------------ 10 files changed, 168 deletions(-) diff --git a/tests/auth.rs b/tests/auth.rs index 921effa..f73a01f 100644 --- a/tests/auth.rs +++ b/tests/auth.rs @@ -19,9 +19,3 @@ async fn test_registration() { bundle.instance.clone().register_account(reg).await.unwrap(); common::teardown(bundle).await; } - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_registration_wasm() { - test_registration(); -} diff --git a/tests/channels.rs b/tests/channels.rs index e67f3dd..d489d94 100644 --- a/tests/channels.rs +++ b/tests/channels.rs @@ -10,36 +10,6 @@ mod common; use wasm_bindgen_test::*; #[cfg(target_arch = "wasm32")] wasm_bindgen_test_configure!(run_in_browser); -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_get_channel_wasm() { - get_channel(); -} -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_delete_channel_wasm() { - delete_channel(); -} -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_modify_channel_wasm() { - modify_channel(); -} -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_get_channel_messages_wasm() { - get_channel_messages(); -} -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_create_dm_wasm() { - create_dm(); -} -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_remove_add_person_from_to_dm_wasm() { - remove_add_person_from_to_dm(); -} #[tokio::test] async fn get_channel() { diff --git a/tests/gateway.rs b/tests/gateway.rs index d0741f9..2cbbe90 100644 --- a/tests/gateway.rs +++ b/tests/gateway.rs @@ -10,30 +10,6 @@ use wasm_bindgen_test::*; #[cfg(target_arch = "wasm32")] wasm_bindgen_test_configure!(run_in_browser); -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_gateway_establish_wasm() { - test_gateway_establish(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_gateway_authenticate_wasm() { - test_gateway_authenticate(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_self_updating_structs_wasm() { - test_self_updating_structs(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_recursive_self_updating_structs_wasm() { - test_recursive_self_updating_structs(); -} - #[tokio::test] /// Tests establishing a connection (hello and heartbeats) on the local gateway; async fn test_gateway_establish() { diff --git a/tests/guilds.rs b/tests/guilds.rs index 8537bb3..78d10c9 100644 --- a/tests/guilds.rs +++ b/tests/guilds.rs @@ -9,36 +9,6 @@ use wasm_bindgen_test::*; #[cfg(target_arch = "wasm32")] wasm_bindgen_test_configure!(run_in_browser); -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn guild_creation_deletion_wasm() { - guild_creation_deletion(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn get_channels_wasm() { - get_channels(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn guild_create_ban_wasm() { - guild_create_ban(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn modify_guild_wasm() { - modify_guild(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn guild_remove_member_wasm() { - guild_remove_member(); -} - #[tokio::test] async fn guild_creation_deletion() { let mut bundle = common::setup().await; diff --git a/tests/instance.rs b/tests/instance.rs index 77ad366..d7a2caa 100644 --- a/tests/instance.rs +++ b/tests/instance.rs @@ -5,12 +5,6 @@ use wasm_bindgen_test::*; #[cfg(target_arch = "wasm32")] wasm_bindgen_test_configure!(run_in_browser); -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn generate_general_configuration_schema_wasm() { - generate_general_configuration_schema(); -} - #[tokio::test] async fn generate_general_configuration_schema() { let bundle = common::setup().await; diff --git a/tests/invites.rs b/tests/invites.rs index 99d75b8..472b87a 100644 --- a/tests/invites.rs +++ b/tests/invites.rs @@ -6,12 +6,6 @@ use wasm_bindgen_test::*; #[cfg(target_arch = "wasm32")] wasm_bindgen_test_configure!(run_in_browser); -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn create_accept_invite_wasm() { - create_accept_invite(); -} - #[tokio::test] async fn create_accept_invite() { let mut bundle = common::setup().await; diff --git a/tests/members.rs b/tests/members.rs index e7a34ed..c95e6fc 100644 --- a/tests/members.rs +++ b/tests/members.rs @@ -7,12 +7,6 @@ wasm_bindgen_test_configure!(run_in_browser); mod common; -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn add_remove_role_wasm() { - add_remove_role().unwrap(); -} - #[tokio::test] async fn add_remove_role() -> ChorusResult<()> { let mut bundle = common::setup().await; diff --git a/tests/messages.rs b/tests/messages.rs index 4355793..a06a615 100644 --- a/tests/messages.rs +++ b/tests/messages.rs @@ -10,30 +10,6 @@ wasm_bindgen_test_configure!(run_in_browser); mod common; -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn send_message_wasm() { - send_message(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn send_message_attachment_wasm() { - send_message_attachment(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn search_messages_wasm() { - search_messages(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_stickies_wasm() { - test_stickies(); -} - #[tokio::test] async fn send_message() { let mut bundle = common::setup().await; diff --git a/tests/relationships.rs b/tests/relationships.rs index e05e2fe..d013223 100644 --- a/tests/relationships.rs +++ b/tests/relationships.rs @@ -7,30 +7,6 @@ wasm_bindgen_test_configure!(run_in_browser); mod common; -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_get_relationships_wasm() { - test_get_relationships(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_get_mutual_relationships_wasm() { - test_get_mutual_relationships(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_modify_relationship_friends_wasm() { - test_modify_relationship_friends(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn test_modify_relationship_block_wasm() { - test_modify_relationship_block(); -} - #[tokio::test] async fn test_get_mutual_relationships() { let mut bundle = common::setup().await; diff --git a/tests/roles.rs b/tests/roles.rs index 628e4fc..547db47 100644 --- a/tests/roles.rs +++ b/tests/roles.rs @@ -7,18 +7,6 @@ wasm_bindgen_test_configure!(run_in_browser); mod common; -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn create_and_get_roles_wasm() { - create_and_get_roles(); -} - -#[cfg(target_arch = "wasm32")] -#[wasm_bindgen_test] -async fn get_and_delete_role_wasm() { - get_and_delete_role(); -} - #[tokio::test] async fn create_and_get_roles() { let mut bundle = common::setup().await;