Routine dependencies update (#533)

* Update dependencies

* Replace deprecated tempdir with tempfile
This commit is contained in:
Mateusz Mikuła
2018-08-10 12:37:45 -07:00
committed by Sean McArthur
parent 989262fe6e
commit 31f71dedee
26 changed files with 51 additions and 51 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ cfg_if! {
}
fn get_host(host: &'static str) -> Error {
drop(env_logger::init());
drop(env_logger::try_init());
let addr = format!("{}:443", host);
let addr = t!(addr.to_socket_addrs()).next().unwrap();
+2 -2
View File
@@ -62,7 +62,7 @@ fn native2io(e: native_tls::Error) -> io::Error {
#[test]
fn fetch_google() {
drop(env_logger::init());
drop(env_logger::try_init());
// First up, resolve google.com
let addr = t!("google.com:443".to_socket_addrs()).next().unwrap();
@@ -98,7 +98,7 @@ fn fetch_google() {
#[cfg_attr(all(target_os = "macos", feature = "force-openssl"), ignore)]
#[test]
fn wrong_hostname_error() {
drop(env_logger::init());
drop(env_logger::try_init());
let addr = t!("google.com:443".to_socket_addrs()).next().unwrap();
+3 -3
View File
@@ -497,7 +497,7 @@ const AMT: u64 = 128 * 1024;
#[test]
fn client_to_server() {
drop(env_logger::init());
drop(env_logger::try_init());
let mut l = t!(Runtime::new());
// Create a server listening on a port, then figure out what that port is
@@ -536,7 +536,7 @@ fn client_to_server() {
#[test]
fn server_to_client() {
drop(env_logger::init());
drop(env_logger::try_init());
let mut l = t!(Runtime::new());
// Create a server listening on a port, then figure out what that port is
@@ -599,7 +599,7 @@ impl<S: AsyncWrite> AsyncWrite for OneByte<S> {
#[test]
fn one_byte_at_a_time() {
const AMT: u64 = 1024;
drop(env_logger::init());
drop(env_logger::try_init());
let mut l = t!(Runtime::new());
let srv = t!(TcpListener::bind(&t!("127.0.0.1:0".parse())));