From 6dcec183a3e748da929c6532a71afb2d1e103019 Mon Sep 17 00:00:00 2001 From: Tianshan Qu Date: Mon, 4 Jul 2016 19:02:59 +0800 Subject: [PATCH] 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 --- s3tests/roundtrip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3tests/roundtrip.py b/s3tests/roundtrip.py index e73f8db..6486f9c 100644 --- a/s3tests/roundtrip.py +++ b/s3tests/roundtrip.py @@ -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: