diff --git a/Cargo.toml b/Cargo.toml index bdafe0127..e66eb42d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,7 @@ rand = "0.4" regex = "0.2" serde = "1.0" serde_json = "1.0" -sha1 = "0.4" +sha1 = "0.6" smallvec = "0.6" time = "0.1" encoding = "0.2" diff --git a/tests/test_server.rs b/tests/test_server.rs index a7ca7318d..0aa3f1bd3 100644 --- a/tests/test_server.rs +++ b/tests/test_server.rs @@ -121,6 +121,7 @@ fn test_shutdown() { assert!(response.status().is_success()); } + thread::sleep(time::Duration::from_millis(100)); assert!(net::TcpStream::connect(addr).is_err()); }