summaryrefslogtreecommitdiffstats
path: root/integrations/api_team_test.go
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-22 09:11:16 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-07-22 15:11:16 +0800
commit12a098920c03d147959516fda59a6dd6fe474a3c (patch)
treec8f10ce5dc02731b0795895684734998605266ea /integrations/api_team_test.go
parentcc384d767e40caa84c58b259853d9cbaaaab33fe (diff)
downloadgitea-12a098920c03d147959516fda59a6dd6fe474a3c.tar.gz
gitea-12a098920c03d147959516fda59a6dd6fe474a3c.zip
Fixed ineffectual assignments in tests (#7553)
Just makes it a bit more obvious which values we want to test for, and which ones we want to ignore.
Diffstat (limited to 'integrations/api_team_test.go')
-rw-r--r--integrations/api_team_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/api_team_test.go b/integrations/api_team_test.go
index a884085f5c..a7c22d6ba1 100644
--- a/integrations/api_team_test.go
+++ b/integrations/api_team_test.go
@@ -41,10 +41,10 @@ func TestAPITeam(t *testing.T) {
session = loginUser(t, user2.Name)
token = getTokenForLoggedInUser(t, session)
req = NewRequestf(t, "GET", "/api/v1/teams/%d?token="+token, teamUser.TeamID)
- resp = session.MakeRequest(t, req, http.StatusForbidden)
+ _ = session.MakeRequest(t, req, http.StatusForbidden)
req = NewRequestf(t, "GET", "/api/v1/teams/%d", teamUser.TeamID)
- resp = session.MakeRequest(t, req, http.StatusUnauthorized)
+ _ = session.MakeRequest(t, req, http.StatusUnauthorized)
// Get an admin user able to create, update and delete teams.
user = models.AssertExistsAndLoadBean(t, &models.User{ID: 1}).(*models.User)