aboutsummaryrefslogtreecommitdiff
path: root/go/replication
diff options
context:
space:
mode:
Diffstat (limited to 'go/replication')
-rw-r--r--go/replication/volume_growth_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/go/replication/volume_growth_test.go b/go/replication/volume_growth_test.go
index 3fbeebc9e..a4104716e 100644
--- a/go/replication/volume_growth_test.go
+++ b/go/replication/volume_growth_test.go
@@ -80,7 +80,11 @@ func setup(topologyLayout string) *topology.Topology {
fmt.Println("data:", data)
//need to connect all nodes first before server adding volumes
- topo := topology.NewTopology("mynetwork", "/etc/weedfs/weedfs.conf", "/tmp", "testing", 32*1024, 5)
+ topo, err := topology.NewTopology("mynetwork", "/etc/weedfs/weedfs.conf",
+ "/tmp", "testing", 32*1024, 5)
+ if err != nil {
+ panic("error: " + err.Error())
+ }
mTopology := data.(map[string]interface{})
for dcKey, dcValue := range mTopology {
dc := topology.NewDataCenter(dcKey)