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:
Krishnan Parthasarathi
2016-06-28 22:32:00 -07:00
committed by Harshavardhana
parent 59366d8f4c
commit b6b9e88e47
4 changed files with 385 additions and 8 deletions

View File

@@ -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.