We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d22953 commit 97785cdCopy full SHA for 97785cd
scraper/src/scraper/scraper_impl_test.go
@@ -74,7 +74,7 @@ func TestScrapeData(t *testing.T) {
74
func createTestServer() *httptest.Server {
75
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
76
w.Header().Set("Content-Type", "text/html")
77
- w.Write([]byte(`
+ _, err := w.Write([]byte(`
78
<div class="product-small box">
79
<div class="name product-title"><a href="#">Test Product</a></div>
80
<div class="category">category</div>
@@ -84,6 +84,8 @@ func createTestServer() *httptest.Server {
84
</div>
85
86
`))
87
+
88
+ assert.NoError(nil, err, "Expected no error writing response")
89
})
90
91
ts := httptest.NewServer(handler)
0 commit comments