mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Disconnect FakeServer when dropping it
This prevents memory leak errors in tests, due to parked tasks waiting for RPC responses.
This commit is contained in:
parent
3ea061a11e
commit
b70396b8fb
@ -178,6 +178,12 @@ impl FakeServer {
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for FakeServer {
|
||||
fn drop(&mut self) {
|
||||
self.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
pub struct FakeHttpClient {
|
||||
handler: Box<
|
||||
dyn 'static
|
||||
|
Loading…
Reference in New Issue
Block a user