From 2430c7247b6c612e71d5bc309472094c77f6c3af Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 11 Mar 2019 12:53:16 -0700 Subject: [PATCH] update timing for travis --- actix-server/tests/test_server.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/actix-server/tests/test_server.rs b/actix-server/tests/test_server.rs index 2cc6c360..edfcf6b0 100644 --- a/actix-server/tests/test_server.rs +++ b/actix-server/tests/test_server.rs @@ -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