mirror of
https://github.com/kataras/iris.git
synced 2026-08-08 21:49:08 +00:00
CI: minor: use the new exclude-paths (dependabot PR approved some days ago)
This commit is contained in:
@@ -101,16 +101,16 @@ func TestContainerInject(t *testing.T) {
|
||||
func TestContainerUseResultHandler(t *testing.T) {
|
||||
c := New()
|
||||
resultLogger := func(next ResultHandler) ResultHandler {
|
||||
return func(ctx iris.Context, v interface{}) error {
|
||||
return func(ctx iris.Context, v any) error {
|
||||
t.Logf("%#+v", v)
|
||||
return next(ctx, v)
|
||||
}
|
||||
}
|
||||
|
||||
c.UseResultHandler(resultLogger)
|
||||
expectedResponse := map[string]interface{}{"injected": true}
|
||||
expectedResponse := map[string]any{"injected": true}
|
||||
c.UseResultHandler(func(next ResultHandler) ResultHandler {
|
||||
return func(ctx iris.Context, v interface{}) error {
|
||||
return func(ctx iris.Context, v any) error {
|
||||
return next(ctx, expectedResponse)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user