fix rgw_roundtrip test fail

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>
This commit is contained in:
Tianshan Qu 2016-07-04 19:02:59 +08:00
parent e29168f8b9
commit 6dcec183a3

View 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: