mirror of
https://github.com/actix/actix-extras.git
synced 2025-08-31 11:26:59 +02:00
bump actix-web to 4.0.0-rc.1
This commit is contained in:
@@ -127,7 +127,7 @@ mod tests {
|
||||
|
||||
use super::*;
|
||||
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn test_borrowed_mut_error() {
|
||||
use actix_utils::future::{ok, Ready};
|
||||
use futures_util::future::lazy;
|
||||
@@ -154,7 +154,7 @@ mod tests {
|
||||
let srv = crate::middleware::IdentityServiceMiddleware {
|
||||
backend: Rc::new(Ident),
|
||||
service: Rc::new(into_service(|_: dev::ServiceRequest| async move {
|
||||
actix_rt::time::sleep(Duration::from_secs(100)).await;
|
||||
actix_web::rt::time::sleep(Duration::from_secs(100)).await;
|
||||
Err::<dev::ServiceResponse, _>(error::ErrorBadRequest("error"))
|
||||
})),
|
||||
};
|
||||
@@ -162,11 +162,11 @@ mod tests {
|
||||
let srv2 = srv.clone();
|
||||
let req = test::TestRequest::default().to_srv_request();
|
||||
|
||||
actix_rt::spawn(async move {
|
||||
actix_web::rt::spawn(async move {
|
||||
let _ = srv2.call(req).await;
|
||||
});
|
||||
|
||||
actix_rt::time::sleep(Duration::from_millis(50)).await;
|
||||
actix_web::rt::time::sleep(Duration::from_millis(50)).await;
|
||||
|
||||
let _ = lazy(|cx| srv.poll_ready(cx)).await;
|
||||
}
|
||||
|
Reference in New Issue
Block a user