1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Reduce memory usage of large multipart copy tests

This commit is contained in:
Stan Hu 2021-01-09 22:08:54 -08:00
parent 3546408e47
commit 12077a31b7

View file

@ -3,7 +3,7 @@ require 'securerandom'
Shindo.tests('Fog::Storage[:aws] | copy requests', ["aws"]) do Shindo.tests('Fog::Storage[:aws] | copy requests', ["aws"]) do
@directory = Fog::Storage[:aws].directories.create(:key => uniq_id('fogmultipartcopytests')) @directory = Fog::Storage[:aws].directories.create(:key => uniq_id('fogmultipartcopytests'))
@large_data = SecureRandom.hex * 19 * 1024 * 1024 @large_data = SecureRandom.hex * 600000
@large_blob = Fog::Storage[:aws].put_object(@directory.identity, 'large_object', @large_data) @large_blob = Fog::Storage[:aws].put_object(@directory.identity, 'large_object', @large_data)
tests('copies an empty object') do tests('copies an empty object') do