hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit f4c90bd6ba6e5bd6ef6671120cc9ef7f660ddb0b
parent d16228334deeb80dac7827b90c16f2d39fcc0ac4
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 16 Feb 2022 13:23:43 +0100

Fix BenchmarkCascadeTarget

Diffstat:
Mhugolib/cascade_test.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hugolib/cascade_test.go b/hugolib/cascade_test.go
@@ -63,11 +63,11 @@ kind = '{section,term}'
 `
 
 	for i := 1; i < 100; i++ {
-		files += "\n-- content/posts/p1.md --\n"
+		files += fmt.Sprintf("\n-- content/posts/p%d.md --\n", i+1)
 	}
 
 	for i := 1; i < 100; i++ {
-		files += "\n-- content/posts/funny/pf1.md --\n"
+		files += fmt.Sprintf("\n-- content/posts/funny/pf%d.md --\n", i+1)
 	}
 
 	b.Run("Kind", func(b *testing.B) {