forked from TrueCloudLab/s3-tests
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:
parent
e29168f8b9
commit
6dcec183a3
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ def writer(bucket, objname, fp, queue):
|
||||||
|
|
||||||
start = time.time()
|
start = time.time()
|
||||||
try:
|
try:
|
||||||
key.set_contents_from_file(fp)
|
key.set_contents_from_file(fp, rewind=True)
|
||||||
except gevent.GreenletExit:
|
except gevent.GreenletExit:
|
||||||
raise
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue