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_commits_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_commits_test.go')
-rw-r--r-- | integrations/repo_commits_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/integrations/repo_commits_test.go b/integrations/repo_commits_test.go index 8343cf22a6..4283b86231 100644 --- a/integrations/repo_commits_test.go +++ b/integrations/repo_commits_test.go @@ -24,7 +24,7 @@ func TestRepoCommits(t *testing.T) { resp := session.MakeRequest(t, req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) - doc := NewHtmlParser(t, resp.Body) + doc := NewHTMLParser(t, resp.Body) commitURL, exists := doc.doc.Find("#commits-table tbody tr td.sha a").Attr("href") assert.True(t, exists) assert.NotEmpty(t, commitURL) @@ -40,7 +40,7 @@ func doTestRepoCommitWithStatus(t *testing.T, state string, classes ...string) { resp := session.MakeRequest(t, req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) - doc := NewHtmlParser(t, resp.Body) + doc := NewHTMLParser(t, resp.Body) // Get first commit URL commitURL, exists := doc.doc.Find("#commits-table tbody tr td.sha a").Attr("href") assert.True(t, exists) @@ -64,7 +64,7 @@ func doTestRepoCommitWithStatus(t *testing.T, state string, classes ...string) { resp = session.MakeRequest(t, req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) - doc = NewHtmlParser(t, resp.Body) + doc = NewHTMLParser(t, resp.Body) // Check if commit status is displayed in message column sel := doc.doc.Find("#commits-table tbody tr td.message i.commit-status") assert.Equal(t, sel.Length(), 1) |