repository: Increase index size for repo version 2

A compressed index is only about one third the size of an uncompressed
one. Thus increase the number of entries in an index to avoid cluttering
the repository with small indexes.
This commit is contained in:
Michael Eischer
2022-04-10 12:20:15 +02:00
parent 2535524132
commit 7132df529e
5 changed files with 23 additions and 8 deletions

View File

@@ -367,7 +367,7 @@ func TestRepositoryIncrementalIndex(t *testing.T) {
repo := r.(*repository.Repository)
repository.IndexFull = func(*repository.Index) bool { return true }
repository.IndexFull = func(*repository.Index, bool) bool { return true }
// add 15 packs
for j := 0; j < 5; j++ {