mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 00:01:11 +01:00
update timing for travis
This commit is contained in:
parent
1bf0f1e1a5
commit
2430c7247b
@ -94,15 +94,14 @@ fn test_start() {
|
||||
let _ = sys.run();
|
||||
});
|
||||
let (srv, sys) = rx.recv().unwrap();
|
||||
thread::sleep(time::Duration::from_millis(400));
|
||||
thread::sleep(time::Duration::from_millis(200));
|
||||
|
||||
assert!(net::TcpStream::connect(addr).is_ok());
|
||||
|
||||
// pause
|
||||
let _ = srv.pause();
|
||||
thread::sleep(time::Duration::from_millis(100));
|
||||
thread::sleep(time::Duration::from_millis(200));
|
||||
assert!(net::TcpStream::connect_timeout(&addr, time::Duration::from_millis(100)).is_ok());
|
||||
thread::sleep(time::Duration::from_millis(400));
|
||||
assert!(net::TcpStream::connect_timeout(&addr, time::Duration::from_millis(100)).is_err());
|
||||
|
||||
// resume
|
||||
|
Loading…
Reference in New Issue
Block a user