mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-26 19:47:43 +02:00
add Debug impl for Io; update examples
This commit is contained in:
@ -102,7 +102,7 @@ fn test_start() {
|
||||
let _ = srv.pause();
|
||||
thread::sleep(time::Duration::from_millis(100));
|
||||
assert!(net::TcpStream::connect_timeout(&addr, time::Duration::from_millis(100)).is_ok());
|
||||
thread::sleep(time::Duration::from_millis(100));
|
||||
thread::sleep(time::Duration::from_millis(400));
|
||||
assert!(net::TcpStream::connect_timeout(&addr, time::Duration::from_millis(100)).is_err());
|
||||
|
||||
// resume
|
||||
|
Reference in New Issue
Block a user