1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 23:51:06 +01:00

Merge pull request #34 from JohnTitor/redis

actix-redis: Bump up to 0.9.0-alpha.1
This commit is contained in:
Yuki Okushi 2020-03-28 10:10:26 +09:00 committed by GitHub
commit f878889627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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"

View File

@ -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());
} }
} }