From a92601964f093705e6dbf07b372b444aecc3ee96 Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Thu, 25 Mar 2021 21:54:00 +0800 Subject: [PATCH] fix test --- actix-http/src/client/connection.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actix-http/src/client/connection.rs b/actix-http/src/client/connection.rs index add31aada..a02f88e25 100644 --- a/actix-http/src/client/connection.rs +++ b/actix-http/src/client/connection.rs @@ -430,6 +430,8 @@ mod test { drop(conn); + actix_rt::task::yield_now().await; + match sender.ready().await { Ok(_) => panic!("connection should be gone and can not be ready"), Err(e) => assert!(e.is_io()),