summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-09-12 11:50:31 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-09-12 11:50:31 +0200
commit18ce854626919b12a3e0dc961cef4921e6de5b11 (patch)
tree4a76db8bf8ebc0d80e188f4d99baefcb8c0e3645
parent69f5bad40fe0c084116755d4a0d07336ca81f3a7 (diff)
Fix recently broken benchmark
-rw-r--r--hugolib/hugo_smoke_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/hugo_smoke_test.go b/hugolib/hugo_smoke_test.go
index 8469421ca..28a5a2635 100644
--- a/hugolib/hugo_smoke_test.go
+++ b/hugolib/hugo_smoke_test.go
@@ -330,7 +330,7 @@ The content.
func TestBenchmarkBaseline(t *testing.T) {
cfg := IntegrationTestConfig{
T: t,
- TxtarString: benchmarkBaselineFiles(false),
+ TxtarString: benchmarkBaselineFiles(true),
}
b := NewIntegrationTestBuilder(cfg).Build()
@@ -488,10 +488,10 @@ Aliqua labore enim et sint anim amet excepteur ea dolore.
n := n + k
ns := fmt.Sprintf("%d", n)
if leafBundles {
- ns = fmt.Sprintf("p%d/index", n)
+ ns = fmt.Sprintf("%d/index", n)
}
-
- files += fmt.Sprintf("\n-- content/%s/%s/%s/p%d.md --\n"+contentTemplate, lang, root, section, ns, n, n)
+ file := fmt.Sprintf("\n-- content/%s/%s/%s/p%s.md --\n"+contentTemplate, lang, root, section, ns, n, n)
+ files += file
}
}
}