summaryrefslogtreecommitdiff
path: root/logging/middleware_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'logging/middleware_test.go')
-rw-r--r--logging/middleware_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/logging/middleware_test.go b/logging/middleware_test.go
index 288c960..76406ef 100644
--- a/logging/middleware_test.go
+++ b/logging/middleware_test.go
@@ -14,11 +14,11 @@ import (
func TestLogRequests(t *testing.T) {
logger := logRecorder{}
- handler := logging.LogRequests(&logger)(func(_ context.Context, _ *gus.Request) *gus.Response {
+ handler := logging.LogRequests(&logger)(gus.HandlerFunc(func(_ context.Context, _ *gus.Request) *gus.Response {
return &gus.Response{}
- })
+ }))
- response := handler(context.Background(), &gus.Request{})
+ response := handler.Handle(context.Background(), &gus.Request{})
_, err := io.ReadAll(response.Body)
assert.Nil(t, err)