mirror of https://github.com/fafhrd91/actix-web
use comparisons supported on 1.42
This commit is contained in:
parent
0c81d9634a
commit
0f74c07d3f
|
@ -1038,19 +1038,18 @@ mod tests {
|
||||||
let res = &mut inner.io.take().unwrap().write_buf[..];
|
let res = &mut inner.io.take().unwrap().write_buf[..];
|
||||||
stabilize_date_header(res);
|
stabilize_date_header(res);
|
||||||
|
|
||||||
assert_eq!(
|
let exp = b"\
|
||||||
&res,
|
HTTP/1.1 200 OK\r\n\
|
||||||
b"\
|
content-length: 0\r\n\
|
||||||
HTTP/1.1 200 OK\r\n\
|
connection: close\r\n\
|
||||||
content-length: 0\r\n\
|
date: Thu, 01 Jan 1970 12:34:56 UTC\r\n\r\n\
|
||||||
connection: close\r\n\
|
HTTP/1.1 200 OK\r\n\
|
||||||
date: Thu, 01 Jan 1970 12:34:56 UTC\r\n\r\n\
|
content-length: 0\r\n\
|
||||||
HTTP/1.1 200 OK\r\n\
|
connection: close\r\n\
|
||||||
content-length: 0\r\n\
|
date: Thu, 01 Jan 1970 12:34:56 UTC\r\n\r\n\
|
||||||
connection: close\r\n\
|
";
|
||||||
date: Thu, 01 Jan 1970 12:34:56 UTC\r\n\r\n\
|
|
||||||
"
|
assert_eq!(res.to_vec(), exp.to_vec());
|
||||||
);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
|
|
Loading…
Reference in New Issue