From 6e70b4b511200d9a2798ba426dea1f71b025b121 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 16 Jun 2015 15:32:19 -0700 Subject: [PATCH] s3tests: fix multipart test Signed-off-by: Yehuda Sadeh --- s3tests/functional/test_s3.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 59b5ba8..7f1ccfa 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -4541,6 +4541,8 @@ def generate_random(size, part_size=5*1024*1024): this_part_size = min(left, part_size) for y in range(this_part_size / chunk): s = s + strpart + if this_part_size > len(s): + s = s + strpart[0:this_part_size - len(s)] yield s if (x == size): return