1
0
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:
Nikolay Kim
2019-03-11 12:46:12 -07:00
parent 9887aef6e8
commit 1bf0f1e1a5
3 changed files with 18 additions and 6 deletions

View File

@ -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