From ca8c8a56b7e89a1e394f8150d6344a711732aa88 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 24 Sep 2012 02:25:31 -0700 Subject: [PATCH] adjusting tests --- weed-fs/src/pkg/topology/node_list_test.go | 2 +- weed-fs/src/pkg/topology/topo_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed-fs/src/pkg/topology/node_list_test.go b/weed-fs/src/pkg/topology/node_list_test.go index 3a948075c..0d16a0526 100644 --- a/weed-fs/src/pkg/topology/node_list_test.go +++ b/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 diff --git a/weed-fs/src/pkg/topology/topo_test.go b/weed-fs/src/pkg/topology/topo_test.go index a7815acb9..658ec9b67 100644 --- a/weed-fs/src/pkg/topology/topo_test.go +++ b/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)