Skip to content

Commit f3a899e

Browse files
Shivaji KharseShivaji Kharse
authored andcommitted
fix minio test
1 parent fb42ac5 commit f3a899e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

systest/backup/minio-large/backup_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ func copyToLocalFs(t *testing.T) {
224224
minio.ListObjectsOptions{Prefix: "", Recursive: false})
225225
for object := range objectCh1 {
226226
require.NoError(t, object.Err)
227-
if object.Key != "manifest.json" {
227+
// Skip root-level JSON manifest files (manifest.json, manifest_summary.json,
228+
// manifest_summary_tmp.json). The inner recursive loop downloads them as files;
229+
// MkdirAll on a path that already exists as a file fails with "not a directory".
230+
if !strings.HasSuffix(object.Key, ".json") {
228231
dstDir := backupDir + "/" + object.Key
229232
require.NoError(t, os.MkdirAll(dstDir, os.ModePerm))
230233
}

0 commit comments

Comments
 (0)