diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 93bf8f943..acbe69f39 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -79,3 +79,4 @@ jobs: --skip test_connection_wait_queue --skip test_no_decompress --skip test_connection_reuse_h2 + --skip test_h2_tcp diff --git a/ntex/tests/http_awc_client.rs b/ntex/tests/http_awc_client.rs index 49d1cab99..e9abc0d86 100644 --- a/ntex/tests/http_awc_client.rs +++ b/ntex/tests/http_awc_client.rs @@ -834,11 +834,14 @@ async fn client_read_until_eof() { let lst = std::net::TcpListener::bind(addr).unwrap(); for stream in lst.incoming() { - let mut stream = stream.unwrap(); - let mut b = [0; 1000]; - let _ = stream.read(&mut b).unwrap(); - let _ = stream - .write_all(b"HTTP/1.0 200 OK\r\nconnection: close\r\n\r\nwelcome!"); + if let Ok(mut stream) = stream { + let mut b = [0; 1000]; + let _ = stream.read(&mut b).unwrap(); + let _ = stream + .write_all(b"HTTP/1.0 200 OK\r\nconnection: close\r\n\r\nwelcome!"); + } else { + break; + } } }); ntex::rt::time::sleep(Duration::from_millis(300)).await;