From a4b837a1c104f5cf5588685404e12232f043bdbc Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 6 Apr 2018 19:45:14 -0700 Subject: [PATCH] flaky test --- tests/test_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_server.rs b/tests/test_server.rs index 8f3401db1..6234a7ea2 100644 --- a/tests/test_server.rs +++ b/tests/test_server.rs @@ -78,7 +78,6 @@ fn test_start() { let (addr, srv_addr) = rx.recv().unwrap(); let mut sys = System::new("test-server"); - { let req = client::ClientRequest::get(format!("http://{}/", addr).as_str()).finish().unwrap(); let response = sys.run_until_complete(req.send()).unwrap(); @@ -87,11 +86,12 @@ fn test_start() { // pause let _ = srv_addr.send(server::PauseServer).wait(); - thread::sleep(time::Duration::from_millis(100)); + thread::sleep(time::Duration::from_millis(200)); assert!(net::TcpStream::connect(addr).is_err()); // resume let _ = srv_addr.send(server::ResumeServer).wait(); + thread::sleep(time::Duration::from_millis(200)); { let req = client::ClientRequest::get(format!("http://{}/", addr).as_str()).finish().unwrap();