stress test filer

This commit is contained in:
Chris Lu
2019-04-15 21:13:07 -07:00
parent 5996656141
commit af52fb2316
2 changed files with 25 additions and 10 deletions

View File

@@ -142,6 +142,7 @@ func uploadFileToFiler(client *http.Client, filename, destination string) (size
if err != nil {
return 0, fmt.Errorf("read http POST %s response: %v", uri, err)
}
io.Copy(ioutil.Discard, resp.Body)
resp.Body.Close()
}