Reset connection pool when tearing down the server in tests

This commit is contained in:
Antonio Scandurra committed 2022-12-13 13:51:25 +01:00
1 parent 335120c8d2
commit 5ee6f231a1
1 file changed
+2
+2
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(());
}