From 81b52445847ccdd450b2c5d20a8a84c1820d09ae Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 17 Sep 2018 17:28:12 -0700 Subject: [PATCH] core: Fix TestContext2Apply_provisionerDestroyModule We now proactively prune empty modules from the state, so the expected state for this test is completely empty, rather than an empty child module. --- terraform/context_apply_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/terraform/context_apply_test.go b/terraform/context_apply_test.go index 64ce6c6fb..844e583f2 100644 --- a/terraform/context_apply_test.go +++ b/terraform/context_apply_test.go @@ -5303,9 +5303,7 @@ func TestContext2Apply_provisionerDestroyModule(t *testing.T) { t.Fatalf("diags: %s", diags.Err()) } - checkStateString(t, state, ` -module.child: - `) + checkStateString(t, state, ``) // Verify apply was invoked if !pr.ProvisionResourceCalled {