diff --git a/actix-server-config/src/lib.rs b/actix-server-config/src/lib.rs index fa8735fc..0d4f7c63 100644 --- a/actix-server-config/src/lib.rs +++ b/actix-server-config/src/lib.rs @@ -33,7 +33,7 @@ impl ServerConfig { } } -#[derive(Copy, Clone, Debug)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] pub enum Protocol { Unknown, Http10, diff --git a/actix-server/tests/test_server.rs b/actix-server/tests/test_server.rs index edfcf6b0..7ff4cc26 100644 --- a/actix-server/tests/test_server.rs +++ b/actix-server/tests/test_server.rs @@ -100,7 +100,7 @@ fn test_start() { // pause let _ = srv.pause(); - thread::sleep(time::Duration::from_millis(200)); + thread::sleep(time::Duration::from_millis(1000)); assert!(net::TcpStream::connect_timeout(&addr, time::Duration::from_millis(100)).is_ok()); assert!(net::TcpStream::connect_timeout(&addr, time::Duration::from_millis(100)).is_err());