From 14a5f61c2c01158e30e81ed64cd8b31f353200bf Mon Sep 17 00:00:00 2001 From: kinggo Date: Sun, 25 Sep 2022 14:32:03 +0800 Subject: [PATCH] :white_check_mark: test: fix Test_Ctx_ParamParser route param (#2119) test: fix Test_Ctx_ParamParser route param --- ctx_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctx_test.go b/ctx_test.go index efbd7b1418..f1bcebfd17 100644 --- a/ctx_test.go +++ b/ctx_test.go @@ -431,7 +431,7 @@ func Test_Ctx_BodyParser(t *testing.T) { func Test_Ctx_ParamParser(t *testing.T) { t.Parallel() app := New() - app.Get("/test1/userId/role/:roleId", func(ctx *Ctx) error { + app.Get("/test1/:userId/role/:roleId", func(ctx *Ctx) error { type Demo struct { UserID uint `params:"userId"` RoleID uint `params:"roleId"`