From 1f2958256469fdecaefa5d6092e72b19c9b25923 Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Tue, 20 Jun 2023 18:33:37 +0200 Subject: [PATCH] Update in tests too --- tests/channel.rs | 8 +++++--- tests/guild.rs | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/channel.rs b/tests/channel.rs index bd519b0..d73a318 100644 --- a/tests/channel.rs +++ b/tests/channel.rs @@ -21,7 +21,7 @@ async fn get_channel() { async fn delete_channel() { let mut bundle = common::setup().await; let result = bundle.channel.clone().delete(&mut bundle.user).await; - assert!(result.is_none()); + assert!(result.is_ok()); common::teardown(bundle).await } @@ -72,14 +72,16 @@ async fn modify_channel() { bundle.channel.id.to_string().as_str(), permission_override.clone(), ) - .await; + .await + .unwrap(); Channel::delete_permission( &mut bundle.user, bundle.channel.id.to_string().as_str(), &permission_override.id, ) - .await; + .await + .unwrap(); common::teardown(bundle).await } diff --git a/tests/guild.rs b/tests/guild.rs index 903b1eb..66d7fa7 100644 --- a/tests/guild.rs +++ b/tests/guild.rs @@ -22,7 +22,7 @@ async fn guild_creation_deletion() { assert!(Guild::delete(&mut bundle.user, &guild.id.to_string()) .await - .is_none()); + .is_ok()); common::teardown(bundle).await }