1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 22:51:07 +01:00

add PartialEq impl for Io

This commit is contained in:
Nikolay Kim 2019-03-11 13:37:30 -07:00
parent 2430c7247b
commit ad50595ece
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ impl ServerConfig {
}
}
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum Protocol {
Unknown,
Http10,

View File

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