diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-12-09 17:47:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-12-09 17:47:10 +0100 |
commit | 21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54 (patch) | |
tree | 41b845c489bfc523fef7bba8bc4f5653f2d1ae20 | |
parent | c84ad8db821c10225c0e603c6ec920c67b6ce36f (diff) | |
download | hugo-21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54.tar.gz hugo-21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54.zip |
Fix BenchmarkMergeByLanguage
Fixes #7914
-rw-r--r-- | hugolib/pages_language_merge_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/pages_language_merge_test.go b/hugolib/pages_language_merge_test.go index fb59235c1..9c22d2e70 100644 --- a/hugolib/pages_language_merge_test.go +++ b/hugolib/pages_language_merge_test.go @@ -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 |