summaryrefslogtreecommitdiffstats
path: root/integrations/html_helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/html_helper.go')
-rw-r--r--integrations/html_helper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/html_helper.go b/integrations/html_helper.go
index c181a25b57..139261d694 100644
--- a/integrations/html_helper.go
+++ b/integrations/html_helper.go
@@ -18,8 +18,8 @@ type HTMLDoc struct {
}
// NewHTMLParser parse html file
-func NewHTMLParser(t testing.TB, content []byte) *HTMLDoc {
- doc, err := goquery.NewDocumentFromReader(bytes.NewReader(content))
+func NewHTMLParser(t testing.TB, body *bytes.Buffer) *HTMLDoc {
+ doc, err := goquery.NewDocumentFromReader(body)
assert.NoError(t, err)
return &HTMLDoc{doc: doc}
}