Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: flakey5 <[email protected]>
  • Loading branch information
flakey5 committed Jan 27, 2025
1 parent cc7c751 commit 406733e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e/file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,14 @@ describe('File Tests', () => {
assert.strictEqual(res.status, 200);
assert.strictEqual(res.headers.has('last-modified'), true);

const date = new Date(res.headers.get('last-modified')!)
date.setSeconds(date.getSeconds() + 1)

// Make sure it returns a 304 when If-Modified-Since
// >= file last modified
res = await mf.dispatchFetch(`${url}dist/index.json`, {
headers: {
'if-modified-since': res.headers.get('last-modified')!,
'if-modified-since': date.toUTCString(),
},
});
assert.strictEqual(res.status, 304);
Expand Down

0 comments on commit 406733e

Please sign in to comment.