From c08e209e064587a0ed1a1139a1b519455927316b Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sun, 3 Nov 2024 19:58:09 +0100 Subject: [PATCH] tests: cleanup redundant code --- src/tests/fixtures.rs | 10 ++-------- src/tests/server.rs | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/tests/fixtures.rs b/src/tests/fixtures.rs index b023077..37fed29 100644 --- a/src/tests/fixtures.rs +++ b/src/tests/fixtures.rs @@ -253,17 +253,11 @@ impl async fn cleanup( &mut self, - resource: Option<( + _resource: Option<( (crate::Client, crate::Workspace, crate::buffer::Controller), (crate::Client, crate::Workspace, crate::buffer::Controller), )>, ) { - if let Some(((client, _, _), (_, _, _))) = resource { - // buffer deletion is implied in workspace deletion - client.leave_workspace(&self.workspace); - if let Err(e) = client.delete_workspace(&self.workspace).await { - eprintln!("could not delete workspace: {e}"); - } - } + // buffer deletion is implied in workspace deletion } } diff --git a/src/tests/server.rs b/src/tests/server.rs index 0f3fda7..15676a1 100644 --- a/src/tests/server.rs +++ b/src/tests/server.rs @@ -86,7 +86,7 @@ async fn test_workspace_interactions() { let client_bob = ClientFixture::of("bob").setup().await?; let workspace_name = format!( "test-workspace-interactions-{}", - uuid::Uuid::new_v4().to_string() + uuid::Uuid::new_v4() ); client_alice.create_workspace(&workspace_name).await?;