1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-22 05:35:08 +02:00

add simple TestServer for integrational tests cases

This commit is contained in:
Nikolay Kim
2017-12-26 16:35:00 -08:00
parent e3b0f02794
commit f6510161b5
4 changed files with 176 additions and 51 deletions

View File

@@ -191,7 +191,7 @@ impl<T, A, H, U, V> HttpServer<T, A, H, U>
/// Get addresses of bound sockets.
pub fn addrs(&self) -> Vec<net::SocketAddr> {
self.sockets.keys().map(|addr| addr.clone()).collect()
self.sockets.keys().cloned().collect()
}
/// The socket address to bind