From ba9d145f66887a5b17e8931a9c3f55647d5317ea Mon Sep 17 00:00:00 2001 From: Joel Rivera Date: Mon, 14 Mar 2016 23:38:15 -0600 Subject: Fix the test_file_stream test... until the computers improves it CPU/IO speed --- cherrypy/test/test_static.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cherrypy/test/test_static.py b/cherrypy/test/test_static.py index 3d6f07bf..70412c90 100644 --- a/cherrypy/test/test_static.py +++ b/cherrypy/test/test_static.py @@ -11,7 +11,7 @@ bigfile_filepath = os.path.join(curdir, "static", "bigfile.log") # The file size needs to be big enough such that half the size of it # won't be socket-buffered (or server-buffered) all in one go. See # test_file_stream. -BIGFILE_SIZE = 1024 * 1024 * 4 +BIGFILE_SIZE = 1024 * 1024 * 20 import cherrypy from cherrypy.lib import static @@ -279,7 +279,9 @@ class StaticTest(helper.CPWebCase): # # At the time of writing, we seem to have encountered # buffer sizes bigger than 512K, so we've increased - # BIGFILE_SIZE to 4MB. + # BIGFILE_SIZE to 4MB and in 2016 to 20MB. + # This test is going to keep failing according to the + # improvements in hardware and OS buffers. if tell_position >= BIGFILE_SIZE: if read_so_far < (BIGFILE_SIZE / 2): self.fail( -- cgit v1.2.1