mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
Routine dependencies update (#533)
* Update dependencies * Replace deprecated tempdir with tempfile
This commit is contained in:
committed by
Sean McArthur
parent
989262fe6e
commit
31f71dedee
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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())));
|
||||
|
||||
Reference in New Issue
Block a user