]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
fix rgw_roundtrip test fail 117/head
authorTianshan Qu <qutianshan@gmail.com>
Mon, 4 Jul 2016 11:02:59 +0000 (19:02 +0800)
committerTianshan Qu <qutianshan@gmail.com>
Mon, 4 Jul 2016 11:13:14 +0000 (19:13 +0800)
boto no longer rewind itself in set_contents_from_file, which will trigger the assert in
realistic/RandomContentFile::seek

Signed-off-by: Tianshan Qu <tianshan@xsky.com>
s3tests/roundtrip.py

index e73f8db6f5ad15845ad1bcc960c1c0e4256d75de..6486f9c5d3738d25fedf1798c73d2784f15bc422 100644 (file)
@@ -27,7 +27,7 @@ def writer(bucket, objname, fp, queue):
 
     start = time.time()
     try:
-        key.set_contents_from_file(fp)
+        key.set_contents_from_file(fp, rewind=True)
     except gevent.GreenletExit:
         raise
     except Exception as e: