Skip to content

Commit

Permalink
test(client): fix pool tests compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Dec 7, 2018
1 parent 138b1f8 commit 3287a0c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/client/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,10 +831,11 @@ mod tests {
}

fn pool_max_idle_no_timer<T>(max_idle: usize) -> Pool<T> {
let pool = Pool::new(
super::Enabled(true),
super::IdleTimeout(Some(Duration::from_millis(100))),
super::MaxIdlePerHost(max_idle),
let pool = Pool::new(super::Config {
enabled: true,
keep_alive_timeout: Some(Duration::from_millis(100)),
max_idle_per_host: max_idle,
},
&Exec::Default,
);
pool.no_timer();
Expand Down Expand Up @@ -912,10 +913,11 @@ mod tests {
use std::time::Instant;
use tokio_timer::Delay;
let mut rt = ::tokio::runtime::current_thread::Runtime::new().unwrap();
let pool = Pool::new(
super::Enabled(true),
super::IdleTimeout(Some(Duration::from_millis(100))),
super::MaxIdlePerHost(::std::usize::MAX),
let pool = Pool::new(super::Config {
enabled: true,
keep_alive_timeout: Some(Duration::from_millis(100)),
max_idle_per_host: ::std::usize::MAX,
},
&Exec::Default,
);

Expand Down

0 comments on commit 3287a0c

Please sign in to comment.