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.
This commit is contained in:
Martin Atkins 2018-09-17 17:28:12 -07:00
parent f439422b6f
commit 81b5244584
1 changed files with 1 additions and 3 deletions

View File

@ -5303,9 +5303,7 @@ func TestContext2Apply_provisionerDestroyModule(t *testing.T) {
t.Fatalf("diags: %s", diags.Err())
}
checkStateString(t, state, `
module.child:
<no state>`)
checkStateString(t, state, `<no state>`)
// Verify apply was invoked
if !pr.ProvisionResourceCalled {