From cb3c0519d6ffb2e8aa4f3fde71da53428d5e478e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Sun, 14 Jun 2026 20:48:04 +0200 Subject: [PATCH] fix unit tests --- azure/public_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure/public_test.go b/azure/public_test.go index 099ab328..f58ad51f 100644 --- a/azure/public_test.go +++ b/azure/public_test.go @@ -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 }