fix test_delete

NewCache does not do precise refcounting, thus chunks won't be deleted
from the repo at "borg delete" time.

"borg check --repair" would remove such chunks IF they are orphans.
This commit is contained in:
Thomas Waldmann 2024-05-31 19:03:46 +02:00
parent 86adc04da4
commit c73f6d4ff3
No known key found for this signature in database
GPG Key ID: 243ACFA951F78E01
1 changed files with 2 additions and 3 deletions

View File

@ -25,9 +25,8 @@ def test_delete(archivers, request):
cmd(archiver, "extract", "test.2", "--dry-run")
output = cmd(archiver, "delete", "-a", "test.2", "--stats")
assert "Original size: -" in output # negative size == deleted data
# Make sure all data except the manifest has been deleted
with Repository(archiver.repository_path) as repository:
assert len(repository) == 1
output = cmd(archiver, "rlist")
assert output == "" # no archives left!
def test_delete_multiple(archivers, request):