From 1f61fd820bf08a8fd6ce180333ca03162660ac93 Mon Sep 17 00:00:00 2001 From: alamb <andrew@nerdnetworks.org> Date: Wed, 1 Jul 2020 12:31:42 -0400 Subject: [PATCH] fix: style cleanup --- tests/end-to-end.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/end-to-end.rs b/tests/end-to-end.rs index 73e2422c18..a8e83aa91b 100644 --- a/tests/end-to-end.rs +++ b/tests/end-to-end.rs @@ -36,7 +36,6 @@ use std::str; use std::time::{Duration, SystemTime}; use std::u32; use tempfile::TempDir; -use tokio::time::Instant; const URL_BASE: &str = "http://localhost:8080/api/v2"; const GRPC_URL_BASE: &str = "http://localhost:8082/"; @@ -664,7 +663,7 @@ impl TestServer { let pair = futures::future::join(try_http_connect(), try_grpc_connect()); - let capped_check = time::timeout(Duration::from_secs(3), pair); + let capped_check = tokio::time::timeout(Duration::from_secs(3), pair); match capped_check.await { Ok(_) => println!("Server is up correctly"),