diff --git a/terraform/transform_destroy_cbd.go b/terraform/transform_destroy_cbd.go index d2abb7dc8..b409b2304 100644 --- a/terraform/transform_destroy_cbd.go +++ b/terraform/transform_destroy_cbd.go @@ -51,7 +51,6 @@ func (t *CBDEdgeTransformer) Transform(g *Graph) error { // Find the destroy edge. There should only be one. for _, e := range g.EdgesTo(v) { - log.Printf("WHAT: %#v", e) // Not a destroy edge, ignore it de, ok := e.(*DestroyEdge) if !ok { diff --git a/terraform/transform_destroy_cbd_test.go b/terraform/transform_destroy_cbd_test.go index 73314b60b..15a3ea436 100644 --- a/terraform/transform_destroy_cbd_test.go +++ b/terraform/transform_destroy_cbd_test.go @@ -8,8 +8,8 @@ import ( func TestCBDEdgeTransformer(t *testing.T) { g := Graph{Path: RootModulePath} g.Add(&graphNodeCreatorTest{AddrString: "test.A"}) + g.Add(&graphNodeCreatorTest{AddrString: "test.B"}) g.Add(&graphNodeDestroyerTest{AddrString: "test.A", CBD: true}) - g.Add(&graphNodeDestroyerTest{AddrString: "test.B"}) { tf := &DestroyEdgeTransformer{ @@ -38,6 +38,6 @@ const testTransformCBDEdgeBasicStr = ` test.A test.A (destroy) test.A - test.B (destroy) -test.B (destroy) + test.B +test.B `