Skip to content

Commit 1a4618c

Browse files
committed
test: Fix unstable (too time-critical) test case
1 parent 750fcbe commit 1a4618c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_sendfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_ims(self):
102102
res = static_file(basename, root=root)
103103
self.assertEqual(304, res.status_code)
104104
self.assertEqual(int(os.stat(__file__).st_mtime), parse_date(res.headers['Last-Modified']))
105-
self.assertAlmostEqual(int(time.time()), parse_date(res.headers['Date']))
105+
self.assertAlmostEqual(int(time.time()), parse_date(res.headers['Date']), delta=2)
106106
request.environ['HTTP_IF_MODIFIED_SINCE'] = bottle.http_date(100)
107107
self.assertEqual(open(__file__,'rb').read(), static_file(basename, root=root).body.read())
108108

0 commit comments

Comments
 (0)