fix unit tests

This commit is contained in:
André Roth
2026-06-14 20:48:04 +02:00
parent be7c232204
commit cb3c0519d6
+1 -2
View File
@@ -1,7 +1,6 @@
package azure
import (
"bytes"
"context"
"crypto/md5"
"crypto/rand"
@@ -86,7 +85,7 @@ func (s *PublishedStorageSuite) GetFile(c *C, path string) []byte {
resp, err := blob.Download(context.Background(), 0, azblob.CountToEnd, azblob.BlobAccessConditions{}, false, azblob.ClientProvidedKeyOptions{})
c.Assert(err, IsNil)
body := resp.Body(azblob.RetryReaderOptions{MaxRetryRequests: 3})
data, err := ioutil.ReadAll(body)
data, err := io.ReadAll(body)
c.Assert(err, IsNil)
return data
}