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()),