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
@@ -22,7 +22,7 @@ macro_rules! t {
#[test]
fn echo_server() {
const N: usize = 1024;
drop(env_logger::init());
drop(env_logger::try_init());
let srv = t!(TcpListener::bind(&t!("127.0.0.1:0".parse())));
let addr = t!(srv.local_addr());
+2 -2
View File
@@ -21,7 +21,7 @@ impl tokio_timer::clock::Now for MockNow {
#[test]
fn clock_and_timer_concurrent() {
let _ = env_logger::init();
let _ = env_logger::try_init();
let when = Instant::now() + Duration::from_millis(5_000);
let clock = Clock::new_with_now(MockNow(when));
@@ -48,7 +48,7 @@ fn clock_and_timer_concurrent() {
#[test]
fn clock_and_timer_single_threaded() {
let _ = env_logger::init();
let _ = env_logger::try_init();
let when = Instant::now() + Duration::from_millis(5_000);
let clock = Clock::new_with_now(MockNow(when));
+2 -2
View File
@@ -21,7 +21,7 @@ macro_rules! t {
#[test]
fn hammer_old() {
let _ = env_logger::init();
let _ = env_logger::try_init();
let threads = (0..10).map(|_| {
thread::spawn(|| {
@@ -77,7 +77,7 @@ fn hammer_split() {
const N: usize = 100;
const ITER: usize = 10;
let _ = env_logger::init();
let _ = env_logger::try_init();
for _ in 0..ITER {
let srv = t!(TcpListener::bind(&"127.0.0.1:0".parse().unwrap()));
+1 -1
View File
@@ -51,7 +51,7 @@ impl Encoder for LineCodec {
#[test]
fn echo() {
drop(env_logger::init());
drop(env_logger::try_init());
let pool = Builder::new()
.pool_size(1)
+1 -1
View File
@@ -63,7 +63,7 @@ impl Evented for MyFile {
#[test]
fn hup() {
drop(env_logger::init());
drop(env_logger::try_init());
let handle = Handle::default();
unsafe {
+4 -4
View File
@@ -50,14 +50,14 @@ fn create_client_server_future() -> Box<Future<Item=(), Error=()> + Send> {
#[test]
fn runtime_tokio_run() {
let _ = env_logger::init();
let _ = env_logger::try_init();
tokio::run(create_client_server_future());
}
#[test]
fn runtime_single_threaded() {
let _ = env_logger::init();
let _ = env_logger::try_init();
let mut runtime = tokio::runtime::current_thread::Runtime::new()
.unwrap();
@@ -67,7 +67,7 @@ fn runtime_single_threaded() {
#[test]
fn runtime_single_threaded_block_on() {
let _ = env_logger::init();
let _ = env_logger::try_init();
tokio::runtime::current_thread::block_on_all(create_client_server_future()).unwrap();
}
@@ -135,7 +135,7 @@ fn runtime_single_threaded_racy_spawn() {
#[test]
fn runtime_multi_threaded() {
let _ = env_logger::init();
let _ = env_logger::try_init();
let mut runtime = tokio::runtime::Builder::new()
.build()
+3 -3
View File
@@ -11,7 +11,7 @@ use std::time::{Duration, Instant};
#[test]
fn timer_with_runtime() {
let _ = env_logger::init();
let _ = env_logger::try_init();
let when = Instant::now() + Duration::from_millis(100);
let (tx, rx) = mpsc::channel();
@@ -33,7 +33,7 @@ fn timer_with_runtime() {
fn starving() {
use futures::{task, Poll, Async};
let _ = env_logger::init();
let _ = env_logger::try_init();
struct Starve(Delay, u64);
@@ -75,7 +75,7 @@ fn starving() {
fn deadline() {
use futures::future;
let _ = env_logger::init();
let _ = env_logger::try_init();
let when = Instant::now() + Duration::from_millis(20);
let (tx, rx) = mpsc::channel();