Skip to content

Commit

Permalink
lint: simplify tests output
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Nov 5, 2023
1 parent 831ca66 commit 33a0289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware/logger/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestMiddleware_Handle(t *testing.T) {
outBuf := bytes.NewBuffer(nil)
loggerMock := &mocks.LoggerSvc{
LogfFunc: func(format string, args ...interface{}) {
_, _ = outBuf.WriteString(fmt.Sprintf(format, args...))
_, _ = fmt.Fprintf(outBuf, format, args...)
},
}
l := New(loggerMock)
Expand Down Expand Up @@ -48,7 +48,7 @@ func TestMiddleware_HandleWithOptions(t *testing.T) {
outBuf := bytes.NewBuffer(nil)
loggerMock := &mocks.LoggerSvc{
LogfFunc: func(format string, args ...interface{}) {
_, _ = outBuf.WriteString(fmt.Sprintf(format, args...))
_, _ = fmt.Fprintf(outBuf, format, args...)
},
}
l := New(loggerMock, WithBody, WithHeaders, Prefix("HIT"))
Expand Down

0 comments on commit 33a0289

Please sign in to comment.