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.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/logging/middleware_test.go b/logging/middleware_test.go
index 76406ef..390148e 100644
--- a/logging/middleware_test.go
+++ b/logging/middleware_test.go
@@ -8,17 +8,17 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "tildegit.org/tjp/gus"
- "tildegit.org/tjp/gus/logging"
+ sr "tildegit.org/tjp/sliderule"
+ "tildegit.org/tjp/sliderule/logging"
)
func TestLogRequests(t *testing.T) {
logger := logRecorder{}
- handler := logging.LogRequests(&logger)(gus.HandlerFunc(func(_ context.Context, _ *gus.Request) *gus.Response {
- return &gus.Response{}
+ handler := logging.LogRequests(&logger)(sr.HandlerFunc(func(_ context.Context, _ *sr.Request) *sr.Response {
+ return &sr.Response{}
}))
- response := handler.Handle(context.Background(), &gus.Request{})
+ response := handler.Handle(context.Background(), &sr.Request{})
_, err := io.ReadAll(response.Body)
assert.Nil(t, err)