Correct length in test for maximum upload size violation
authorSofia Papagiannaki <papagian@gmail.com>
Tue, 26 Jun 2012 16:24:26 +0000 (19:24 +0300)
committerSofia Papagiannaki <papagian@gmail.com>
Tue, 26 Jun 2012 16:24:26 +0000 (19:24 +0300)
snf-pithos-tools/pithos/tools/test.py

index d3e5dcc..9301b6d 100755 (executable)
@@ -1216,8 +1216,8 @@ class ObjectPut(BaseTestCase):
     def _test_maximum_upload_size_exceeds(self):
         name = o_names[0]
         meta = {'test':'test1'}
-        #upload 100MB
-        length=1024*1024*100
+        #upload 5GB
+        length= 5 * (1024 * 1024 * 1024) + 1
         self.assert_raises_fault(400, self.upload_random_data, self.container,
                                  name, length, **meta)