Skip to content

Commit 97785cd

Browse files
committed
fix a linter err
1 parent 9d22953 commit 97785cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scraper/src/scraper/scraper_impl_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func TestScrapeData(t *testing.T) {
7474
func createTestServer() *httptest.Server {
7575
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
7676
w.Header().Set("Content-Type", "text/html")
77-
w.Write([]byte(`
77+
_, err := w.Write([]byte(`
7878
<div class="product-small box">
7979
<div class="name product-title"><a href="#">Test Product</a></div>
8080
<div class="category">category</div>
@@ -84,6 +84,8 @@ func createTestServer() *httptest.Server {
8484
</div>
8585
</div>
8686
`))
87+
88+
assert.NoError(nil, err, "Expected no error writing response")
8789
})
8890

8991
ts := httptest.NewServer(handler)

0 commit comments

Comments
 (0)