From 69bcbfb8134b836ea2ef1f6650260cb17b05712c Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Wed, 26 Sep 2018 17:54:40 -0700 Subject: [PATCH] core: Fix TestContext2Apply_destroyModuleWithAttrsReferencingResource Now that we're properly pruning orphaned resources and empty modules from the state, our expected output is a little different. --- terraform/context_apply_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/terraform/context_apply_test.go b/terraform/context_apply_test.go index b7681e62e..aae34eb29 100644 --- a/terraform/context_apply_test.go +++ b/terraform/context_apply_test.go @@ -6494,11 +6494,7 @@ func TestContext2Apply_destroyModuleWithAttrsReferencingResource(t *testing.T) { //Test that things were destroyed actual := strings.TrimSpace(state.String()) - expected := strings.TrimSpace(` - -module.child: - - `) + expected := strings.TrimSpace(``) if actual != expected { t.Fatalf("expected:\n\n%s\n\nactual:\n\n%s", expected, actual) }