mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-27 17:22:57 +01:00
Merge pull request #34 from JohnTitor/redis
actix-redis: Bump up to 0.9.0-alpha.1
This commit is contained in:
commit
f878889627
@ -1,6 +1,6 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## [Unreleased]
|
## [0.9.0-alpha.1]
|
||||||
|
|
||||||
* Update `actix` to 0.10.0-alpha.2
|
* Update `actix` to 0.10.0-alpha.2
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-redis"
|
name = "actix-redis"
|
||||||
version = "0.8.1"
|
version = "0.9.0-alpha.1"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Redis integration for actix framework"
|
description = "Redis integration for actix framework"
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
|
@ -557,10 +557,7 @@ mod test {
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.find(|c| c.name() == "test-session")
|
.find(|c| c.name() == "test-session")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(
|
assert_ne!(cookie_1.value(), cookie_2.value());
|
||||||
true,
|
|
||||||
cookie_1.value() != cookie_2.value()
|
|
||||||
);
|
|
||||||
|
|
||||||
let result_5 = resp_5.json::<IndexResponse>().await.unwrap();
|
let result_5 = resp_5.json::<IndexResponse>().await.unwrap();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
@ -618,7 +615,7 @@ mod test {
|
|||||||
counter: 0
|
counter: 0
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
assert!(cookie_3.value() != cookie_2.value());
|
assert_ne!(cookie_3.value(), cookie_2.value());
|
||||||
|
|
||||||
// Step 9: POST to logout, including session cookie #2
|
// Step 9: POST to logout, including session cookie #2
|
||||||
// - set-cookie actix-session will be in response with session cookie #2
|
// - set-cookie actix-session will be in response with session cookie #2
|
||||||
@ -632,7 +629,10 @@ mod test {
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.find(|c| c.name() == "test-session")
|
.find(|c| c.name() == "test-session")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_ne!(OffsetDateTime::now().year(), cookie_4.expires().map(|t| t.year()).unwrap());
|
assert_ne!(
|
||||||
|
OffsetDateTime::now().year(),
|
||||||
|
cookie_4.expires().map(|t| t.year()).unwrap()
|
||||||
|
);
|
||||||
|
|
||||||
// Step 10: GET index, including session cookie #2 in request
|
// Step 10: GET index, including session cookie #2 in request
|
||||||
// - set-cookie actix-session will be in response (session cookie #3)
|
// - set-cookie actix-session will be in response (session cookie #3)
|
||||||
@ -655,6 +655,6 @@ mod test {
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.find(|c| c.name() == "test-session")
|
.find(|c| c.name() == "test-session")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert!(cookie_5.value() != cookie_2.value());
|
assert_ne!(cookie_5.value(), cookie_2.value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user