Prevent unnecessary logging during tests

This commit is contained in:
Erik Dubbelboer
2026-03-23 05:18:59 +01:00
parent d238e60fed
commit d64d07686a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ func TestServeFSSpecialCharsNotLiteral(t *testing.T) {
var ctx RequestCtx
var req Request
req.SetRequestURI("http://foobar.com/original")
ctx.Init(&req, nil, nil)
ctx.Init(&req, nil, TestLogger{t})
ServeFS(&ctx, testFS, name)
+1 -1
View File
@@ -236,7 +236,7 @@ func TestServeFileSpecialCharsNotLiteral(t *testing.T) {
var ctx RequestCtx
var req Request
req.SetRequestURI("http://foobar.com/original")
ctx.Init(&req, nil, nil)
ctx.Init(&req, nil, TestLogger{t})
ServeFile(&ctx, filePath)