mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
bump actix-web to 4.0.0-rc.1
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
# Changes
|
||||
|
||||
## Unreleased - 2021-xx-xx
|
||||
- Update `actix-web` dependency to `4.0.0-rc.1`.
|
||||
|
||||
|
||||
## 0.6.0-beta.7 - 2021-12-29
|
||||
|
@ -20,7 +20,7 @@ path = "src/lib.rs"
|
||||
[dependencies]
|
||||
actix-service = "2"
|
||||
actix-utils = "3"
|
||||
actix-web = { version = "4.0.0-beta.17", default_features = false }
|
||||
actix-web = { version = "4.0.0-rc.1", default_features = false }
|
||||
|
||||
base64 = "0.13"
|
||||
futures-util = { version = "0.3.7", default-features = false }
|
||||
@ -29,4 +29,4 @@ pin-project-lite = "0.2.7"
|
||||
|
||||
[dev-dependencies]
|
||||
actix-cors = "0.6.0-beta.8"
|
||||
actix-rt = "2"
|
||||
actix-web = { version = "4.0.0-rc.2", default_features = false, features = ["macros"] }
|
||||
|
@ -248,11 +248,11 @@ mod tests {
|
||||
use actix_web::{error, HttpResponse};
|
||||
|
||||
/// This is a test for https://github.com/actix/actix-extras/issues/10
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn test_middleware_panic() {
|
||||
let middleware = AuthenticationMiddleware {
|
||||
service: Rc::new(into_service(|_: ServiceRequest| async move {
|
||||
actix_rt::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
actix_web::rt::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
Err::<ServiceResponse, _>(error::ErrorBadRequest("error"))
|
||||
})),
|
||||
process_fn: Arc::new(|req, _: BearerAuth| async { Ok(req) }),
|
||||
@ -271,11 +271,11 @@ mod tests {
|
||||
}
|
||||
|
||||
/// This is a test for https://github.com/actix/actix-extras/issues/10
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn test_middleware_panic_several_orders() {
|
||||
let middleware = AuthenticationMiddleware {
|
||||
service: Rc::new(into_service(|_: ServiceRequest| async move {
|
||||
actix_rt::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
actix_web::rt::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
Err::<ServiceResponse, _>(error::ErrorBadRequest("error"))
|
||||
})),
|
||||
process_fn: Arc::new(|req, _: BearerAuth| async { Ok(req) }),
|
||||
@ -307,7 +307,7 @@ mod tests {
|
||||
assert!(f3.is_err());
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn test_middleware_opt_extractor() {
|
||||
let middleware = AuthenticationMiddleware {
|
||||
service: Rc::new(into_service(|req: ServiceRequest| async move {
|
||||
@ -331,7 +331,7 @@ mod tests {
|
||||
assert!(f.is_ok());
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn test_middleware_res_extractor() {
|
||||
let middleware = AuthenticationMiddleware {
|
||||
service: Rc::new(into_service(|req: ServiceRequest| async move {
|
||||
|
Reference in New Issue
Block a user