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.5.0-beta.7 - 2021-12-29
|
||||
|
@ -20,7 +20,7 @@ cookie-session = ["actix-web/secure-cookies"]
|
||||
[dependencies]
|
||||
actix-service = "2"
|
||||
actix-utils = "3"
|
||||
actix-web = { version = "4.0.0-beta.18", default_features = false, features = ["cookies"] }
|
||||
actix-web = { version = "4.0.0-rc.1", default_features = false, features = ["cookies"] }
|
||||
|
||||
derive_more = "0.99.5"
|
||||
futures-util = { version = "0.3.7", default-features = false }
|
||||
@ -30,4 +30,4 @@ serde_json = "1.0"
|
||||
time = "0.3"
|
||||
|
||||
[dev-dependencies]
|
||||
actix-rt = "2"
|
||||
actix-web = { version = "4.0.0-rc.2", default_features = false, features = ["macros", "cookies"] }
|
||||
|
@ -393,7 +393,7 @@ mod tests {
|
||||
use actix_web::web::Bytes;
|
||||
use actix_web::{test, web, App};
|
||||
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn cookie_session() {
|
||||
let app = test::init_service(
|
||||
App::new()
|
||||
@ -413,7 +413,7 @@ mod tests {
|
||||
.any(|c| c.name() == "actix-session"));
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn private_cookie() {
|
||||
let app = test::init_service(
|
||||
App::new()
|
||||
@ -433,7 +433,7 @@ mod tests {
|
||||
.any(|c| c.name() == "actix-session"));
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn lazy_cookie() {
|
||||
let app = test::init_service(
|
||||
App::new()
|
||||
@ -459,7 +459,7 @@ mod tests {
|
||||
.any(|c| c.name() == "actix-session"));
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn cookie_session_extractor() {
|
||||
let app = test::init_service(
|
||||
App::new()
|
||||
@ -479,7 +479,7 @@ mod tests {
|
||||
.any(|c| c.name() == "actix-session"));
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn basics() {
|
||||
let app = test::init_service(
|
||||
App::new()
|
||||
@ -520,7 +520,7 @@ mod tests {
|
||||
assert_eq!(body, Bytes::from_static(b"counter: 100"));
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
#[actix_web::test]
|
||||
async fn prolong_expiration() {
|
||||
let app = test::init_service(
|
||||
App::new()
|
||||
@ -545,7 +545,7 @@ mod tests {
|
||||
.datetime()
|
||||
.expect("Expiration is a datetime");
|
||||
|
||||
actix_rt::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
actix_web::rt::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
|
||||
let request = test::TestRequest::with_uri("/test/").to_request();
|
||||
let response = app.call(request).await.unwrap();
|
||||
|
Reference in New Issue
Block a user