From 10a6caf4eee1e7af7a6e5147a256fed8ee65c339 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 20 Feb 2013 13:55:35 -0800 Subject: [PATCH] test_s3: reduce multipart tests sizes Tests were dominating run time Signed-off-by: Yehuda Sadeh --- s3tests/functional/test_s3.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 4e79532..1059301 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -4011,8 +4011,8 @@ def test_multipart_upload(): def test_multipart_upload_contents(): bucket = get_new_bucket() key_name="mymultipart" - num_parts=5 - payload='foo'*10*1024*1024 + num_parts=3 + payload='12345'*1024*1024 mp=bucket.initiate_multipart_upload(key_name) for i in range(0, num_parts): mp.upload_part_from_file(StringIO(payload), i+1) @@ -4030,8 +4030,8 @@ def test_multipart_upload_contents(): def test_multipart_upload_overwrite_existing_object(): bucket = get_new_bucket() key_name="mymultipart" - payload='bar'*10*1024*1024 - num_parts=5 + payload='12345'*1024*1024 + num_parts=2 key=bucket.new_key(key_name) key.set_contents_from_string(payload)