1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

migrate ci to github actions (#367)

This commit is contained in:
Rob Ede
2020-09-16 01:11:49 +01:00
committed by GitHub
parent e3c6a1ec07
commit d836b046c9
11 changed files with 6522 additions and 77 deletions

View File

@ -108,7 +108,6 @@ mod test {
App,
};
use serde_json::json;
use time;
#[actix_rt::test]
async fn test_workflow() {
@ -233,10 +232,7 @@ mod test {
.into_iter()
.find(|c| c.name() == "test-session")
.unwrap();
assert_eq!(
true,
cookie_1.value().to_string() != cookie_2.value().to_string()
);
assert_ne!(cookie_1.value(), cookie_2.value());
let result_5 = resp_5.json::<IndexResponse>().await.unwrap();
assert_eq!(
@ -294,7 +290,7 @@ mod test {
counter: 0
}
);
assert!(cookie_3.value().to_string() != cookie_2.value().to_string());
assert_ne!(cookie_3.value(), cookie_2.value());
// Step 9: POST to logout, including session cookie #2
// - set-cookie actix-session will be in response with session cookie #2
@ -333,6 +329,6 @@ mod test {
.into_iter()
.find(|c| c.name() == "test-session")
.unwrap();
assert!(cookie_5.value().to_string() != cookie_2.value().to_string());
assert_ne!(cookie_5.value(), cookie_2.value());
}
}