summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-12-09 17:47:10 +0100
committerBjørn Erik Pedersen <[email protected]>2020-12-09 17:47:10 +0100
commit21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54 (patch)
tree41b845c489bfc523fef7bba8bc4f5653f2d1ae20
parentc84ad8db821c10225c0e603c6ec920c67b6ce36f (diff)
downloadhugo-21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54.tar.gz
hugo-21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54.zip
Fix BenchmarkMergeByLanguage
Fixes #7914
-rw-r--r--hugolib/pages_language_merge_test.go3
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