use comparisons supported on 1.42

This commit is contained in:
Rob Ede 2020-12-19 02:48:50 +00:00
parent 0c81d9634a
commit 0f74c07d3f
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
1 changed files with 12 additions and 13 deletions

View File

@ -1038,9 +1038,7 @@ mod tests {
let res = &mut inner.io.take().unwrap().write_buf[..];
stabilize_date_header(res);
assert_eq!(
&res,
b"\
let exp = b"\
HTTP/1.1 200 OK\r\n\
content-length: 0\r\n\
connection: close\r\n\
@ -1049,8 +1047,9 @@ mod tests {
content-length: 0\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;