diff --git a/crates/client/src/test.rs b/crates/client/src/test.rs index a809bd2769..92183e2566 100644 --- a/crates/client/src/test.rs +++ b/crates/client/src/test.rs @@ -178,6 +178,12 @@ impl FakeServer { } } +impl Drop for FakeServer { + fn drop(&mut self) { + self.disconnect(); + } +} + pub struct FakeHttpClient { handler: Box< dyn 'static