diff options
author | Timofey <t.danshin@corp.mail.ru> | 2015-06-05 13:40:08 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:50:11 +0300 |
commit | 8becb963559335004f29fb5bdbf6e3738cd8acf9 (patch) | |
tree | d3a728c803e6f1d1fb2d390594cc43977a8e752d /tools | |
parent | 5184858593eef278b0d2ae412bbc44745608089f (diff) |
Working on fixing the downloader tests.
Turns out, we have been serving wrong data, we wrote actual characters 255 instead of writing the byte 11111111, so some of our tests used to fail. What we will do now is serve bytes from 0000 to FFFF (or whatever the equivalent of the last byte in 47kb is), and we will modify our SHA in the tests accordingly.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testserver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testserver.py b/tools/testserver.py index aa01e49a2d..1cde252ad5 100644 --- a/tools/testserver.py +++ b/tools/testserver.py @@ -48,7 +48,7 @@ from scipy.stats.stats import trim_mean PORT = 34568 -LIFESPAN = 180.0 # timeout for the self destruction timer - how much time +LIFESPAN = 18000.0 # timeout for the self destruction timer - how much time # passes between the last request and the server killing # itself PING_TIMEOUT = 5 # Nubmer of seconds to wait for ping response @@ -274,7 +274,7 @@ class PostHandler(BaseHTTPRequestHandler): self.end_headers() for i in range(0, length + 1): # try: - self.wfile.write(255) + self.wfile.write(chr(i%256)) # except IOError, e: # if e.errno == errno.EPIPE: # print("This is indeed a broken pipe") |