mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00:00
Reset connection pool when tearing down the server in tests
This commit is contained in:
parent
d4c8fa3090
commit
4dc838fbb7
1 changed files with 2 additions and 0 deletions
|
@ -323,8 +323,10 @@ impl Server {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn teardown(&self) {
|
||||
self.peer.reset();
|
||||
self.connection_pool.lock().reset();
|
||||
let _ = self.teardown.send(());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue