Add tests for remote buckets handlers (#2843)

This commit is contained in:
Javier Adriel
2023-06-08 13:06:49 -06:00
committed by GitHub
parent b33b9315ea
commit b4603547f6
5 changed files with 413 additions and 36 deletions

View File

@@ -381,7 +381,7 @@ func getAccountBuckets(ctx context.Context, client MinioAdmin) ([]*models.Bucket
if err != nil {
return []*models.Bucket{}, err
}
var bucketInfos []*models.Bucket
bucketInfos := []*models.Bucket{}
for _, bucket := range info.Buckets {
bucketElem := &models.Bucket{
CreationDate: bucket.Created.Format(time.RFC3339),