summaryrefslogtreecommitdiff
path: root/logging/middleware_test.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-05-01 07:56:25 -0600
committertjpcc <tjp@ctrl-c.club>2023-05-01 07:56:25 -0600
commit9a2da81b11ad0064cca24ce7974827d032309369 (patch)
tree4313224dc089208423e78bffc3ec50833e35bcea /logging/middleware_test.go
parent21e2758145d100d74013060f7090d84679cae683 (diff)
name change gus -> sliderule
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)