mirror of https://github.com/fafhrd91/actix-web
fix tests
This commit is contained in:
parent
0b61e68e0a
commit
75ed3b9b21
|
@ -416,7 +416,8 @@ mod cookie_tests {
|
|||
#[test]
|
||||
fn removal_cookies() {
|
||||
let mut res = HttpResponse::Ok().finish();
|
||||
res.add_removal_cookie("foo").unwrap();
|
||||
let cookie = Cookie::new("foo", "");
|
||||
res.add_removal_cookie(&cookie).unwrap();
|
||||
let set_cookie_hdr = res.headers().get(header::SET_COOKIE).unwrap();
|
||||
assert_eq!(
|
||||
&set_cookie_hdr.as_bytes()[..25],
|
||||
|
|
Loading…
Reference in New Issue