mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Prevent unnecessary logging during tests
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user