aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/cascade_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-02-16 13:23:43 +0100
committerBjørn Erik Pedersen <[email protected]>2022-02-16 13:23:43 +0100
commitf4c90bd6ba6e5bd6ef6671120cc9ef7f660ddb0b (patch)
treec977655b173cd6c61574d4a13fb65004f6a69ee3 /hugolib/cascade_test.go
parentd16228334deeb80dac7827b90c16f2d39fcc0ac4 (diff)
downloadhugo-f4c90bd6ba6e5bd6ef6671120cc9ef7f660ddb0b.tar.gz
hugo-f4c90bd6ba6e5bd6ef6671120cc9ef7f660ddb0b.zip
Fix BenchmarkCascadeTarget
Diffstat (limited to 'hugolib/cascade_test.go')
-rw-r--r--hugolib/cascade_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/cascade_test.go b/hugolib/cascade_test.go
index 836a00e2a..b7ca45290 100644
--- 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) {