diff --git a/handlers/people_test.go b/handlers/people_test.go index a2998d9de..c0fe4d8c7 100644 --- a/handlers/people_test.go +++ b/handlers/people_test.go @@ -368,10 +368,7 @@ func TestGetListedPeople(t *testing.T) { } rctx := chi.NewRouteContext() - rctx.URLParams.Add("page", "1") - rctx.URLParams.Add("limit", "10") - rctx.URLParams.Add("languages", "typescript") - req, err := http.NewRequestWithContext(context.WithValue(context.Background(), chi.RouteCtxKey, rctx), http.MethodGet, "/", nil) + req, err := http.NewRequestWithContext(context.WithValue(context.Background(), chi.RouteCtxKey, rctx), http.MethodGet, "/?page=1&limit=10&languages=typescript", nil) assert.NoError(t, err) mockDb.On("GetListedPeople", mock.Anything).Return(expectedPeople)