1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-09-15 13:30:36 +02:00
seaweedfs/go/topology/topo_test.go

18 lines
298 B
Go

package topology
import (
"testing"
)
func TestRemoveDataCenter(t *testing.T) {
topo := setup(topologyLayout)
topo.UnlinkChildNode(NodeId("dc2"))
if topo.GetActiveVolumeCount() != 15 {
t.Fail()
}
topo.UnlinkChildNode(NodeId("dc3"))
if topo.GetActiveVolumeCount() != 12 {
t.Fail()
}
}