Skip to content

Commit

Permalink
tests: fix non-existent day in fs tests (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Nov 4, 2021
1 parent 1948044 commit 94dd05e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async fn not_modified() {

// clearly too old
let res = warp::test::request()
.header("if-modified-since", "Sun, 07 Nov 1994 01:00:00 GMT")
.header("if-modified-since", "Mon, 07 Nov 1994 01:00:00 GMT")
.reply(&file)
.await;
assert_eq!(res.status(), 200);
Expand All @@ -167,7 +167,7 @@ async fn precondition() {

// clearly too old
let res = warp::test::request()
.header("if-unmodified-since", "Sun, 07 Nov 1994 01:00:00 GMT")
.header("if-unmodified-since", "Mon, 07 Nov 1994 01:00:00 GMT")
.reply(&file)
.await;
assert_eq!(res.status(), 412);
Expand Down Expand Up @@ -222,7 +222,7 @@ async fn byte_ranges() {
// if-range too old
let res = warp::test::request()
.header("range", "bytes=100-200")
.header("if-range", "Sun, 07 Nov 1994 01:00:00 GMT")
.header("if-range", "Mon, 07 Nov 1994 01:00:00 GMT")
.reply(&file)
.await;
assert_eq!(res.status(), 200);
Expand Down

0 comments on commit 94dd05e

Please sign in to comment.