diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-06-17 11:29:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-17 11:29:59 -0500 |
commit | 90f9bb12c628a167d30f6f8b4bfb80438fb675a7 (patch) | |
tree | 8fc223551e3aa7f10db924661a448b7623e3d124 /integrations/repo_fork_test.go | |
parent | 6233e88f7f89b15d91f8047ccc4b2ad300170ec7 (diff) | |
download | gitea-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/repo_fork_test.go')
-rw-r--r-- | integrations/repo_fork_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/repo_fork_test.go b/integrations/repo_fork_test.go index 7aebd5dbde..bcd5185116 100644 --- a/integrations/repo_fork_test.go +++ b/integrations/repo_fork_test.go @@ -23,7 +23,7 @@ func testRepoFork(t *testing.T, session *TestSession) *TestResponse { assert.EqualValues(t, http.StatusOK, resp.HeaderCode) // Step2: click the fork button - htmlDoc := NewHtmlParser(t, resp.Body) + htmlDoc := NewHTMLParser(t, resp.Body) link, exists := htmlDoc.doc.Find("a.ui.button[href^=\"/repo/fork/\"]").Attr("href") assert.True(t, exists, "The template has changed") req = NewRequest(t, "GET", link) @@ -31,7 +31,7 @@ func testRepoFork(t *testing.T, session *TestSession) *TestResponse { assert.EqualValues(t, http.StatusOK, resp.HeaderCode) // Step3: fill the form of the forking - htmlDoc = NewHtmlParser(t, resp.Body) + htmlDoc = NewHTMLParser(t, resp.Body) link, exists = htmlDoc.doc.Find("form.ui.form[action^=\"/repo/fork/\"]").Attr("action") assert.True(t, exists, "The template has changed") req = NewRequestWithValues(t, "POST", link, map[string]string{ |