integration tests: Use t.Helper() (#7654)

This commit is contained in:
Antoine GIRARD 2019-07-29 06:15:18 +02:00 committed by Lunny Xiao
parent 0c927b1606
commit d02566a8ea
2 changed files with 18 additions and 0 deletions

View file

@ -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}