1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 13:29:24 +00:00

fix awc test_client test (#1960)

This commit is contained in:
fakeshadow 2021-02-06 08:05:33 -08:00 committed by GitHub
parent 51e54dac8b
commit 83fb4978ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -722,9 +722,9 @@ async fn test_client_cookie_handling() {
async fn client_unread_response() {
let addr = test::unused_addr();
std::thread::spawn(move || {
let lst = std::net::TcpListener::bind(addr).unwrap();
let lst = std::net::TcpListener::bind(addr).unwrap();
std::thread::spawn(move || {
for stream in lst.incoming() {
let mut stream = stream.unwrap();
let mut b = [0; 1000];