From 21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 9 Dec 2020 17:47:10 +0100 Subject: [PATCH] Fix BenchmarkMergeByLanguage Fixes #7914 --- hugolib/pages_language_merge_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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