Update in tests too
This commit is contained in:
parent
b8d7030ab1
commit
f2d3aa62e2
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue