forked from forgejo/forgejo
fix golint error and rename func for suggestion. (#1997)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
6233e88f7f
commit
90f9bb12c6
11 changed files with 30 additions and 25 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue