You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2021/10/23 10:04:24 UTC
[libcloud] branch trunk updated: Use less chunks to speed up the
test.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
The following commit(s) were added to refs/heads/trunk by this push:
new faf718a Use less chunks to speed up the test.
faf718a is described below
commit faf718ae5fe1e1294cf9eec61a12d983139d28a7
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sat Oct 23 11:55:50 2021 +0200
Use less chunks to speed up the test.
---
integration/storage/base.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/integration/storage/base.py b/integration/storage/base.py
index bb39c4f..65ae1cb 100644
--- a/integration/storage/base.py
+++ b/integration/storage/base.py
@@ -288,7 +288,7 @@ class Integration:
content = gzip.compress(os.urandom(MB // 100))
container = self.driver.create_container(self._random_container_name())
self.driver.upload_object_via_stream(
- get_content_iter_with_chunk_size(content, 500),
+ get_content_iter_with_chunk_size(content, 1000),
container,
object_name,
headers={'Content-Encoding': 'gzip'},
@@ -301,7 +301,7 @@ class Integration:
def test_cdn_url(self):
content = os.urandom(MB // 100)
container = self.driver.create_container(self._random_container_name())
- content_iter = get_content_iter_with_chunk_size(content, 500)
+ content_iter = get_content_iter_with_chunk_size(content, 1000)
obj = self.driver.upload_object_via_stream(content_iter, container, 'cdn')
response = requests.get(self.driver.get_object_cdn_url(obj))