adjusting tests

This commit is contained in:
Chris Lu 2012-09-24 02:25:31 -07:00
parent 729340708e
commit ca8c8a56b7
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ import (
)
func TestXYZ(t *testing.T) {
topo := NewTopology("topo","/tmp","test",234,5)
topo := NewTopology("topo","/etc/weed.conf", "/tmp","test",234,5)
for i := 0; i < 5; i++ {
dc := NewDataCenter("dc" + strconv.Itoa(i))
dc.activeVolumeCount = i

View file

@ -78,7 +78,7 @@ func setup(topologyLayout string) *Topology {
}
//need to connect all nodes first before server adding volumes
topo := NewTopology("mynetwork","/tmp","test",234,5)
topo := NewTopology("mynetwork","/etc/weed.conf","/tmp","test",234,5)
mTopology := data.(map[string]interface{})
for dcKey, dcValue := range mTopology {
dc := NewDataCenter(dcKey)