repository: add dedicated test helper

This commit is contained in:
Michael Eischer
2025-09-28 14:25:49 +02:00
parent 82971ad7f0
commit 189b295c30
8 changed files with 56 additions and 31 deletions

View File

@@ -1421,7 +1421,7 @@ func TestArchiverSnapshot(t *testing.T) {
}
TestEnsureSnapshot(t, repo, snapshotID, want)
checker.TestCheckRepo(t, repo, false)
checker.TestCheckRepo(t, repo)
// check that the snapshot contains the targets with absolute paths
for i, target := range sn.Paths {
@@ -1641,7 +1641,7 @@ func TestArchiverSnapshotSelect(t *testing.T) {
}
TestEnsureSnapshot(t, repo, snapshotID, want)
checker.TestCheckRepo(t, repo, false)
checker.TestCheckRepo(t, repo)
})
}
}
@@ -1866,7 +1866,7 @@ func TestArchiverParent(t *testing.T) {
t.Logf("testfs: %v", testFS)
}
checker.TestCheckRepo(t, repo, false)
checker.TestCheckRepo(t, repo)
})
}
}
@@ -2021,7 +2021,7 @@ func TestArchiverErrorReporting(t *testing.T) {
}
TestEnsureSnapshot(t, repo, snapshotID, want)
checker.TestCheckRepo(t, repo, false)
checker.TestCheckRepo(t, repo)
})
}
}
@@ -2384,7 +2384,7 @@ func TestMetadataChanged(t *testing.T) {
// make sure the content matches
TestEnsureFileContent(context.Background(), t, repo, "testfile", node3, files["testfile"].(TestFile))
checker.TestCheckRepo(t, repo, false)
checker.TestCheckRepo(t, repo)
}
func TestRacyFileTypeSwap(t *testing.T) {