Fix BenchmarkMergeByLanguage

Fixes #7914
This commit is contained in:
Bjørn Erik Pedersen 2020-12-09 17:47:10 +01:00
parent c84ad8db82
commit 21fa1e86f2
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -170,7 +170,8 @@ date: "2018-02-28"
func BenchmarkMergeByLanguage(b *testing.B) {
const count = 100
builder := newTestSiteForLanguageMerge(b, count)
// newTestSiteForLanguageMerge creates count+1 pages.
builder := newTestSiteForLanguageMerge(b, count-1)
builder.CreateSites()
builder.Build(BuildCfg{SkipRender: true})
h := builder.H