Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions tests/integration/customizations/s3/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1544,17 +1544,12 @@ def use_classic_transfer_client(self, aws_config_copy):

def assert_max_memory_used(self, process, max_mem_allowed, full_command):
peak_memory = max(process.memory_usage)
if peak_memory > max_mem_allowed:
failure_message = (
'Exceeded max memory allowed (%s MB) for command '
'"%s": %s MB'
% (
self.max_mem_allowed / 1024.0 / 1024.0,
full_command,
peak_memory / 1024.0 / 1024.0,
)
)
self.fail(failure_message)

assert peak_memory <= max_mem_allowed, (
"Exceeded max memory allowed "
f"({max_mem_allowed / 1024.0 / 1024.0} MB) for command "
f'"{full_command}": {peak_memory / 1024.0 / 1024.0} MB'
)

def test_transfer_single_large_file(self, files, shared_bucket):
# 40MB will force a multipart upload.
Expand Down
Loading