summaryrefslogtreecommitdiff
path: root/test_util/src
diff options
context:
space:
mode:
Diffstat (limited to 'test_util/src')
-rw-r--r--test_util/src/lib.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs
index b02181170..d156f4ebb 100644
--- a/test_util/src/lib.rs
+++ b/test_util/src/lib.rs
@@ -1,10 +1,6 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
// Usage: provide a port as argument to run hyper_hello benchmark server
// otherwise this starts multiple servers on many ports for test endpoints.
-
-#[macro_use]
-extern crate lazy_static;
-
use futures::FutureExt;
use futures::Stream;
use futures::StreamExt;
@@ -16,9 +12,8 @@ use hyper::Body;
use hyper::Request;
use hyper::Response;
use hyper::StatusCode;
+use lazy_static::lazy_static;
use os_pipe::pipe;
-#[cfg(unix)]
-pub use pty;
use regex::Regex;
use serde::Serialize;
use std::collections::HashMap;
@@ -48,6 +43,9 @@ use tokio_rustls::rustls;
use tokio_rustls::TlsAcceptor;
use tokio_tungstenite::accept_async;
+#[cfg(unix)]
+pub use pty;
+
const PORT: u16 = 4545;
const TEST_AUTH_TOKEN: &str = "abcdef123456789";
const REDIRECT_PORT: u16 = 4546;