Delete Guild on test cleanup

This commit is contained in:
bitfl0wer 2023-05-23 14:00:08 +02:00
parent 4b4f863c03
commit 9fce6c4606
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 7 additions and 1 deletions

View File

@ -90,7 +90,13 @@ async fn setup() -> TestBundle {
}
// Teardown method to clean up after a test.
async fn teardown(bundle: TestBundle) {
async fn teardown(mut bundle: TestBundle) {
Guild::delete(
&mut bundle.user,
bundle.instance.urls.get_api(),
bundle.guild_id,
)
.await;
bundle.user.delete().await;
}