fix old tests that's found not working during travis integration.

This commit is contained in:
Chris Lu
2014-07-20 23:41:25 -07:00
parent a0b2582a75
commit df2d3ea7c0
4 changed files with 10 additions and 110 deletions

View File

@@ -116,7 +116,14 @@ func TestFindEmptySlotsForOneVolume(t *testing.T) {
topo := setup(topologyLayout)
vg := NewDefaultVolumeGrowth()
rp, _ := storage.NewReplicaPlacementFromString("002")
servers, err := vg.findEmptySlotsForOneVolume(topo, "dc1", rp)
volumeGrowOption := &VolumeGrowOption{
Collection: "",
ReplicaPlacement: rp,
DataCenter: "dc1",
Rack: "",
DataNode: "",
}
servers, err := vg.findEmptySlotsForOneVolume(topo, volumeGrowOption)
if err != nil {
fmt.Println("finding empty slots error :", err)
t.Fail()