summaryrefslogtreecommitdiffstats
path: root/integrations/change_default_branch_test.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-06-17 11:29:59 -0500
committerGitHub <noreply@github.com>2017-06-17 11:29:59 -0500
commit90f9bb12c628a167d30f6f8b4bfb80438fb675a7 (patch)
tree8fc223551e3aa7f10db924661a448b7623e3d124 /integrations/change_default_branch_test.go
parent6233e88f7f89b15d91f8047ccc4b2ad300170ec7 (diff)
downloadgitea-90f9bb12c628a167d30f6f8b4bfb80438fb675a7.tar.gz
gitea-90f9bb12c628a167d30f6f8b4bfb80438fb675a7.zip
fix golint error and rename func for suggestion. (#1997)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'integrations/change_default_branch_test.go')
-rw-r--r--integrations/change_default_branch_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/change_default_branch_test.go b/integrations/change_default_branch_test.go
index d34cd176cd..d082512209 100644
--- a/integrations/change_default_branch_test.go
+++ b/integrations/change_default_branch_test.go
@@ -25,7 +25,7 @@ func TestChangeDefaultBranch(t *testing.T) {
req := NewRequest(t, "GET", branchesURL)
resp := session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
- doc := NewHtmlParser(t, resp.Body)
+ doc := NewHTMLParser(t, resp.Body)
req = NewRequestWithValues(t, "POST", branchesURL, map[string]string{
"_csrf": doc.GetCSRF(),
@@ -39,7 +39,7 @@ func TestChangeDefaultBranch(t *testing.T) {
req = NewRequest(t, "GET", branchesURL)
resp = session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
- doc = NewHtmlParser(t, resp.Body)
+ doc = NewHTMLParser(t, resp.Body)
req = NewRequestWithValues(t, "POST", branchesURL, map[string]string{
"_csrf": doc.GetInputValueByName("_csrf"),