Delete Guild on test cleanup

This commit is contained in:
bitfl0wer 2023-05-23 14:00:08 +02:00
parent b05c5b1224
commit d486442813
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. // 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; bundle.user.delete().await;
} }