mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -05:00
Added unit-tests for treeWalkPool (#1969)
* Added unit-tests for treeWalkPool * Added unit tests for tree-walk-fs * Added period at the end of all comments. * FS/XL: Unified tree walk tests for both backends * Added disk failure related tests for treewalk Replaced removeRandomDisks with removeDiskN. There is no need to randomize disks that fail while the distribution of chunks in XL during erasure coding data is random.
This commit is contained in:
committed by
Harshavardhana
parent
59366d8f4c
commit
b6b9e88e47
@@ -1237,7 +1237,7 @@ func testListObjectPartsDiskNotFound(obj ObjectLayer, instanceType string, disks
|
||||
}
|
||||
|
||||
// Remove some random disk.
|
||||
removeRandomDisk(disks, 1)
|
||||
removeDiskN(disks, 1)
|
||||
|
||||
uploadIDs = append(uploadIDs, uploadID)
|
||||
|
||||
@@ -1270,8 +1270,8 @@ func testListObjectPartsDiskNotFound(obj ObjectLayer, instanceType string, disks
|
||||
}
|
||||
}
|
||||
|
||||
// Remove one more random disk.
|
||||
removeRandomDisk(disks, 1)
|
||||
// Remove one disk.
|
||||
removeDiskN(disks, 1)
|
||||
|
||||
partInfos := []ListPartsInfo{
|
||||
// partinfos - 0.
|
||||
|
||||
Reference in New Issue
Block a user