summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rivera <rivera@joel.mx>2016-03-14 23:38:15 -0600
committerJoel Rivera <rivera@joel.mx>2016-03-14 23:38:15 -0600
commitba9d145f66887a5b17e8931a9c3f55647d5317ea (patch)
treea77cf3c329d71f722feb639e4a02034d225ac7bf
parentfa5ec6eb7face12e97d39726a5d464f167ed8fed (diff)
downloadcherrypy-ba9d145f66887a5b17e8931a9c3f55647d5317ea.tar.gz
Fix the test_file_stream test... until the computers improves it CPU/IO speed
-rw-r--r--cherrypy/test/test_static.py6
1 files 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(