chore(tests): set a short timeout on the integration clients pool

This commit is contained in:
Sean McArthur
2018-04-26 12:37:31 -07:00
parent d19d95af77
commit 11c92ff467
2 changed files with 7 additions and 2 deletions

View File

@@ -571,8 +571,11 @@ impl Builder {
///
/// Default is 90 seconds.
#[inline]
pub fn keep_alive_timeout(&mut self, val: Option<Duration>) -> &mut Self {
self.keep_alive_timeout = val;
pub fn keep_alive_timeout<D>(&mut self, val: D) -> &mut Self
where
D: Into<Option<Duration>>,
{
self.keep_alive_timeout = val.into();
self
}