Reset connection pool when tearing down the server in tests
This commit is contained in:
@@ -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(());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user