Update in tests too

This commit is contained in:
kozabrada123 2023-06-20 18:33:37 +02:00
parent b8d7030ab1
commit f2d3aa62e2
2 changed files with 6 additions and 4 deletions

View File

@ -21,7 +21,7 @@ async fn get_channel() {
async fn delete_channel() { async fn delete_channel() {
let mut bundle = common::setup().await; let mut bundle = common::setup().await;
let result = bundle.channel.clone().delete(&mut bundle.user).await; let result = bundle.channel.clone().delete(&mut bundle.user).await;
assert!(result.is_none()); assert!(result.is_ok());
common::teardown(bundle).await common::teardown(bundle).await
} }
@ -72,14 +72,16 @@ async fn modify_channel() {
bundle.channel.id.to_string().as_str(), bundle.channel.id.to_string().as_str(),
permission_override.clone(), permission_override.clone(),
) )
.await; .await
.unwrap();
Channel::delete_permission( Channel::delete_permission(
&mut bundle.user, &mut bundle.user,
bundle.channel.id.to_string().as_str(), bundle.channel.id.to_string().as_str(),
&permission_override.id, &permission_override.id,
) )
.await; .await
.unwrap();
common::teardown(bundle).await common::teardown(bundle).await
} }

View File

@ -22,7 +22,7 @@ async fn guild_creation_deletion() {
assert!(Guild::delete(&mut bundle.user, &guild.id.to_string()) assert!(Guild::delete(&mut bundle.user, &guild.id.to_string())
.await .await
.is_none()); .is_ok());
common::teardown(bundle).await common::teardown(bundle).await
} }