diff --git a/roles/xmpp_server/molecule/default/tests/test_client.py b/roles/xmpp_server/molecule/default/tests/test_client.py index 5f3f5c07a72992db2b56f07ce8ebe1a4a7357ea4..4d8248ef65306b0815b8ac1783721f90f7d48385 100644 --- a/roles/xmpp_server/molecule/default/tests/test_client.py +++ b/roles/xmpp_server/molecule/default/tests/test_client.py @@ -188,12 +188,14 @@ def test_http_file_share_daily_quota(host, username, password, domain): Tests the user's daily quota for files uploaded via XEP-0363. """ + # Equivalent of 100MiB. file_size_limit = 10 * 1024 * 1024 + file_count = 10 # Fill-up the daily quota. create_sample_file = host.run("dd if=/dev/zero of=/tmp/http_file_upload_sample.txt bs=%sB count=1", str(file_size_limit)) assert create_sample_file.rc == 0 - for _ in range(10): + for _ in range(file_count): send = host.run(f"go-sendxmpp --debug --username {username}@{domain} --password {password} --jserver {domain}:5222 " f"--http-upload /tmp/http_file_upload_sample.txt " f"{username}@{domain}")