Refactor integration test DecodeJSON calls to use generic return value (#37432)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wxiaoguang <2114189+wxiaoguang@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -145,8 +145,7 @@ func testLinksAsUser(t *testing.T) {
|
||||
|
||||
reqAPI := NewRequestf(t, "GET", "/api/v1/users/user2/repos")
|
||||
respAPI := MakeRequest(t, reqAPI, http.StatusOK)
|
||||
var apiRepos []*api.Repository
|
||||
DecodeJSON(t, respAPI, &apiRepos)
|
||||
apiRepos := DecodeJSON(t, respAPI, []*api.Repository{})
|
||||
repoLinks := []string{
|
||||
"",
|
||||
"/issues",
|
||||
|
||||
Reference in New Issue
Block a user