diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-02-23 16:11:34 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-02-26 03:52:02 +0200 |
commit | c8b7066d2e83d3a6f9f72b7db6681b437fa0dc9d (patch) | |
tree | 3733354b01c11d5d1d63e4f2c0f267ab822150ee /test/storage/server.js | |
parent | 59a45b8400c1c07b3163c2274b0b59115cc23351 (diff) | |
download | qtlocation-mapboxgl-c8b7066d2e83d3a6f9f72b7db6681b437fa0dc9d.tar.gz |
[tests] Unit tests for clock skew retry timeout
Diffstat (limited to 'test/storage/server.js')
-rwxr-xr-x | test/storage/server.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/storage/server.js b/test/storage/server.js index d15544a0fd..c2f30abc49 100755 --- a/test/storage/server.js +++ b/test/storage/server.js @@ -55,6 +55,11 @@ app.get('/revalidate-same', function(req, res) { } }); +var expiresCounter = 0; +app.get('/clockskew', function (req, res) { + res.setHeader('Expires', (new Date(2010, 1, 1, 10, ++expiresCounter, 0)).toUTCString()); + res.status(200).send('Response'); +}); app.get('/revalidate-modified', function(req, res) { var jan1 = new Date('jan 1 2015 utc'); |