You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
298 B

13 years ago
13 years ago
  1. package topology
  2. import (
  3. "testing"
  4. )
  5. func TestRemoveDataCenter(t *testing.T) {
  6. topo := setup(topologyLayout)
  7. topo.UnlinkChildNode(NodeId("dc2"))
  8. if topo.GetActiveVolumeCount() != 15 {
  9. t.Fail()
  10. }
  11. topo.UnlinkChildNode(NodeId("dc3"))
  12. if topo.GetActiveVolumeCount() != 12 {
  13. t.Fail()
  14. }
  15. }