file rename

This commit is contained in:
Chris Lu
2018-06-24 23:19:56 -07:00
parent 233a9a9b6c
commit afc1532b24

View File

@@ -0,0 +1,17 @@
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()
}
}