mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Fix recently broken benchmark
This commit is contained in:
@@ -330,7 +330,7 @@ The content.
|
|||||||
func TestBenchmarkBaseline(t *testing.T) {
|
func TestBenchmarkBaseline(t *testing.T) {
|
||||||
cfg := IntegrationTestConfig{
|
cfg := IntegrationTestConfig{
|
||||||
T: t,
|
T: t,
|
||||||
TxtarString: benchmarkBaselineFiles(false),
|
TxtarString: benchmarkBaselineFiles(true),
|
||||||
}
|
}
|
||||||
b := NewIntegrationTestBuilder(cfg).Build()
|
b := NewIntegrationTestBuilder(cfg).Build()
|
||||||
|
|
||||||
@@ -488,10 +488,10 @@ Aliqua labore enim et sint anim amet excepteur ea dolore.
|
|||||||
n := n + k
|
n := n + k
|
||||||
ns := fmt.Sprintf("%d", n)
|
ns := fmt.Sprintf("%d", n)
|
||||||
if leafBundles {
|
if leafBundles {
|
||||||
ns = fmt.Sprintf("p%d/index", n)
|
ns = fmt.Sprintf("%d/index", n)
|
||||||
}
|
}
|
||||||
|
file := fmt.Sprintf("\n-- content/%s/%s/%s/p%s.md --\n"+contentTemplate, lang, root, section, ns, n, n)
|
||||||
files += fmt.Sprintf("\n-- content/%s/%s/%s/p%d.md --\n"+contentTemplate, lang, root, section, ns, n, n)
|
files += file
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user