diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-12-03 14:46:01 -0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-12-04 00:46:01 +0200 |
commit | e59adcde655aac0e8afd3249407c9a0a2b1b1d6b (patch) | |
tree | a1b5859eadfe6ffdfc106012b7eab13a16459813 /integrations/html_helper.go | |
parent | 993b86628bdf62c0565c2a57a73561bb2d535b22 (diff) | |
download | gitea-e59adcde655aac0e8afd3249407c9a0a2b1b1d6b.tar.gz gitea-e59adcde655aac0e8afd3249407c9a0a2b1b1d6b.zip |
Use httptest in integration tests (#3080)
Diffstat (limited to 'integrations/html_helper.go')
-rw-r--r-- | integrations/html_helper.go | 4 |
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} } |