Commit cd7a4483 by Chris Dodge Committed by David Baumgold

some tweeks to the negative testing

parent 5e218389
...@@ -10,7 +10,9 @@ class DebugFileUploader(FileUploadHandler): ...@@ -10,7 +10,9 @@ class DebugFileUploader(FileUploadHandler):
def receive_data_chunk(self, raw_data, start): def receive_data_chunk(self, raw_data, start):
time.sleep(1) time.sleep(1)
self.count = self.count + len(raw_data) self.count = self.count + len(raw_data)
fail_at = self.request.GET.get('fail_at', None) fail_at = None
if 'fail_at' in self.request.GET:
fail_at = int(self.request.GET.get('fail_at'))
if fail_at and self.count > fail_at: if fail_at and self.count > fail_at:
raise Exception('Triggered fail') raise Exception('Triggered fail')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment