remove error return and improve headers

This commit is contained in:
2025-12-21 17:20:03 +01:00
parent 1e403e42aa
commit 2789623ab5
2 changed files with 99 additions and 34 deletions
-3
View File
@@ -308,7 +308,6 @@ func Test_Cache(t *testing.T) {
t.Errorf("expected body %q, got %q", expected, got)
}
// Verify log contains "template compiled and cached"
if !strings.Contains(buf.String(), "template compiled and cached") {
t.Error("expected 'template compiled and cached' message on first render")
}
@@ -324,9 +323,7 @@ func Test_Cache(t *testing.T) {
t.Errorf("expected body %q, got %q", expected, got)
}
// Verify log DOES NOT contain "template compiled and cached" (cache hit)
if strings.Contains(buf.String(), "template compiled and cached") {
t.Error("did not expect 'template compiled and cached' message on second render")
}
}