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