diff --git a/webinfo_test.go b/webinfo_test.go index a964b53..20f1b1c 100644 --- a/webinfo_test.go +++ b/webinfo_test.go @@ -258,7 +258,7 @@ func TestDownloadImage_ReadFullReturnsError(t *testing.T) { StatusCode: 200, Status: "200 OK", Header: make(http.Header), - Body: io.NopCloser(errReader{}), + Body: errReader{}, Request: req, }, nil })