From 63c0f82f3b75898e49b0ab80b621d0f398e90504 Mon Sep 17 00:00:00 2001 From: cp-20 <47262658+mario-hsp@users.noreply.github.com> Date: Mon, 4 Dec 2023 23:17:09 +0900 Subject: [PATCH] register `SetValidatorMiddleware` during TestEditResponse (`responses_test.go`) --- router/responses_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/responses_test.go b/router/responses_test.go index 6e21b804..2754bfbb 100644 --- a/router/responses_test.go +++ b/router/responses_test.go @@ -1684,7 +1684,7 @@ func TestEditResponse(t *testing.T) { } e := echo.New() - e.PATCH("/api/responses/:responseID", r.EditResponse, m.SetUserIDMiddleware, m.TraPMemberAuthenticate, func(next echo.HandlerFunc) echo.HandlerFunc { + e.PATCH("/api/responses/:responseID", r.EditResponse, m.SetUserIDMiddleware, m.SetValidatorMiddleware, m.TraPMemberAuthenticate, func(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { responseID, err := strconv.Atoi(c.Param("responseID")) if err != nil {