make ListMultipart/ListParts more reliable skip healing disks (#18312)

this PR also fixes old flaky tests, by properly marking disk offline-based tests.
This commit is contained in:
Harshavardhana
2023-10-24 23:33:25 -07:00
committed by GitHub
parent 483389f2e2
commit c60f54e5be
5 changed files with 76 additions and 52 deletions

View File

@@ -1509,16 +1509,6 @@ func removeRoots(roots []string) {
}
}
// removeDiskN - removes N disks from supplied disk slice.
func removeDiskN(disks []string, n int) {
if n > len(disks) {
n = len(disks)
}
for _, disk := range disks[:n] {
os.RemoveAll(disk)
}
}
// creates a bucket for the tests and returns the bucket name.
// initializes the specified API endpoints for the tests.
// initialies the root and returns its path.