From 046faf247aed703291555add3479eecac612ec68 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 21 Sep 2016 13:54:19 -0700 Subject: [PATCH] terraform: cleanup and failing test for CBD --- terraform/transform_destroy_cbd.go | 1 - terraform/transform_destroy_cbd_test.go | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/terraform/transform_destroy_cbd.go b/terraform/transform_destroy_cbd.go index d2abb7dc8b..b409b2304b 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 73314b60bc..15a3ea436e 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 `