Reset connection pool when tearing down the server in tests

This commit is contained in:
Antonio Scandurra 2022-12-13 13:51:25 +01:00
parent d4c8fa3090
commit 4dc838fbb7

View file

@ -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(());
}