remove logging from tests

This commit is contained in:
Nikolay Kim 2021-01-25 18:58:02 +06:00
parent 46dafe4311
commit 5ce0700f4a
2 changed files with 0 additions and 8 deletions

View file

@ -937,9 +937,6 @@ mod tests {
#[ntex_rt::test] #[ntex_rt::test]
async fn test_write_backpressure() { async fn test_write_backpressure() {
std::env::set_var("RUST_LOG", "ntex_codec=info,ntex=trace");
env_logger::init();
let num = Arc::new(AtomicUsize::new(0)); let num = Arc::new(AtomicUsize::new(0));
let num2 = num.clone(); let num2 = num.clone();

View file

@ -85,9 +85,6 @@ async fn test_expect_continue() {
#[ntex::test] #[ntex::test]
async fn test_expect_continue_h1() { async fn test_expect_continue_h1() {
std::env::set_var("RUST_LOG", "ntex_codec=info,ntex=trace");
env_logger::init();
let srv = test_server(|| { let srv = test_server(|| {
HttpService::build() HttpService::build()
.expect(fn_service(|req: Request| { .expect(fn_service(|req: Request| {
@ -118,9 +115,7 @@ async fn test_expect_continue_h1() {
let mut stream = net::TcpStream::connect(srv.addr()).unwrap(); let mut stream = net::TcpStream::connect(srv.addr()).unwrap();
let _ = stream.write_all(b"GET /test?yes= HTTP/1.1\r\nexpect: 100-continue\r\n\r\n"); let _ = stream.write_all(b"GET /test?yes= HTTP/1.1\r\nexpect: 100-continue\r\n\r\n");
let mut data = String::new(); let mut data = String::new();
println!("1-------------------");
let _ = stream.read_to_string(&mut data); let _ = stream.read_to_string(&mut data);
println!("2-------------------");
assert!(data.starts_with("HTTP/1.1 100 Continue\r\n\r\nHTTP/1.1 200 OK\r\n")); assert!(data.starts_with("HTTP/1.1 100 Continue\r\n\r\nHTTP/1.1 200 OK\r\n"));
} }