diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-07-29 06:15:18 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-29 12:15:18 +0800 |
commit | d02566a8ead1ef99ba354dbbbb45dcccaec54551 (patch) | |
tree | eca615a7b7a2bba9a762e6371a1554e05c188a17 /integrations/html_helper.go | |
parent | 0c927b1606a0c38c1016b1544b2f33635504e735 (diff) | |
download | gitea-d02566a8ead1ef99ba354dbbbb45dcccaec54551.tar.gz gitea-d02566a8ead1ef99ba354dbbbb45dcccaec54551.zip |
integration tests: Use t.Helper() (#7654)
Diffstat (limited to 'integrations/html_helper.go')
-rw-r--r-- | integrations/html_helper.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/integrations/html_helper.go b/integrations/html_helper.go index 139261d694..823ed44851 100644 --- a/integrations/html_helper.go +++ b/integrations/html_helper.go @@ -19,6 +19,7 @@ type HTMLDoc struct { // NewHTMLParser parse html file func NewHTMLParser(t testing.TB, body *bytes.Buffer) *HTMLDoc { + t.Helper() doc, err := goquery.NewDocumentFromReader(body) assert.NoError(t, err) return &HTMLDoc{doc: doc} |