mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjusting tests
This commit is contained in:
parent
729340708e
commit
ca8c8a56b7
|
@ -7,7 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestXYZ(t *testing.T) {
|
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++ {
|
for i := 0; i < 5; i++ {
|
||||||
dc := NewDataCenter("dc" + strconv.Itoa(i))
|
dc := NewDataCenter("dc" + strconv.Itoa(i))
|
||||||
dc.activeVolumeCount = i
|
dc.activeVolumeCount = i
|
||||||
|
|
|
@ -78,7 +78,7 @@ func setup(topologyLayout string) *Topology {
|
||||||
}
|
}
|
||||||
|
|
||||||
//need to connect all nodes first before server adding volumes
|
//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{})
|
mTopology := data.(map[string]interface{})
|
||||||
for dcKey, dcValue := range mTopology {
|
for dcKey, dcValue := range mTopology {
|
||||||
dc := NewDataCenter(dcKey)
|
dc := NewDataCenter(dcKey)
|
||||||
|
|
Loading…
Reference in a new issue