Browse Source

adjusting tests

pull/2/head
Chris Lu 12 years ago
parent
commit
ca8c8a56b7
  1. 2
      weed-fs/src/pkg/topology/node_list_test.go
  2. 2
      weed-fs/src/pkg/topology/topo_test.go

2
weed-fs/src/pkg/topology/node_list_test.go

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

2
weed-fs/src/pkg/topology/topo_test.go

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

Loading…
Cancel
Save