aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/api_org_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/api_org_test.go')
-rw-r--r--integrations/api_org_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/integrations/api_org_test.go b/integrations/api_org_test.go
index 76979c674d..e33c010e88 100644
--- a/integrations/api_org_test.go
+++ b/integrations/api_org_test.go
@@ -23,7 +23,7 @@ func TestAPIOrgCreate(t *testing.T) {
session := loginUser(t, "user1")
token := getTokenForLoggedInUser(t, session)
- var org = api.CreateOrgOption{
+ org := api.CreateOrgOption{
UserName: "user1_org",
FullName: "User1's organization",
Description: "This organization created by user1",
@@ -80,7 +80,7 @@ func TestAPIOrgEdit(t *testing.T) {
session := loginUser(t, "user1")
token := getTokenForLoggedInUser(t, session)
- var org = api.EditOrgOption{
+ org := api.EditOrgOption{
FullName: "User3 organization new full name",
Description: "A new description",
Website: "https://try.gitea.io/new",
@@ -107,7 +107,7 @@ func TestAPIOrgEditBadVisibility(t *testing.T) {
session := loginUser(t, "user1")
token := getTokenForLoggedInUser(t, session)
- var org = api.EditOrgOption{
+ org := api.EditOrgOption{
FullName: "User3 organization new full name",
Description: "A new description",
Website: "https://try.gitea.io/new",
@@ -126,7 +126,7 @@ func TestAPIOrgDeny(t *testing.T) {
setting.Service.RequireSignInView = false
}()
- var orgName = "user1_org"
+ orgName := "user1_org"
req := NewRequestf(t, "GET", "/api/v1/orgs/%s", orgName)
MakeRequest(t, req, http.StatusNotFound)