mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 20:11:30 +00:00
test(backup): make large testfile larger
This commit is contained in:
parent
11184a55e8
commit
3ee90617ba
|
@ -303,7 +303,7 @@ def test_backup_service_task(backups, dummy_service):
|
||||||
def test_backup_larger_file(backups, dummy_service):
|
def test_backup_larger_file(backups, dummy_service):
|
||||||
dir = path.join(dummy_service.get_folders()[0], "LARGEFILE")
|
dir = path.join(dummy_service.get_folders()[0], "LARGEFILE")
|
||||||
mega = 2**20
|
mega = 2**20
|
||||||
make_large_file(dir, 10 * mega)
|
make_large_file(dir, 100 * mega)
|
||||||
|
|
||||||
handle = start_backup(dummy_service)
|
handle = start_backup(dummy_service)
|
||||||
handle(blocking=True)
|
handle(blocking=True)
|
||||||
|
@ -315,7 +315,7 @@ def test_backup_larger_file(backups, dummy_service):
|
||||||
assert_job_has_run(job_type_id)
|
assert_job_has_run(job_type_id)
|
||||||
updates = job_progress_updates(job_type_id)
|
updates = job_progress_updates(job_type_id)
|
||||||
assert len(updates) > 3
|
assert len(updates) > 3
|
||||||
assert updates[1] > 10
|
assert updates[int((len(updates)-1)/2.0)] > 10
|
||||||
|
|
||||||
|
|
||||||
def test_restore_snapshot_task(backups, dummy_service):
|
def test_restore_snapshot_task(backups, dummy_service):
|
||||||
|
|
Loading…
Reference in a new issue