Update in tests too

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

View File

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

View File

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