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.
This commit is contained in:
Martin Atkins 2018-09-26 17:54:40 -07:00
parent 2eea07750a
commit 69bcbfb813
1 changed files with 1 additions and 5 deletions

View File

@ -6494,11 +6494,7 @@ func TestContext2Apply_destroyModuleWithAttrsReferencingResource(t *testing.T) {
//Test that things were destroyed
actual := strings.TrimSpace(state.String())
expected := strings.TrimSpace(`
<no state>
module.child:
<no state>
`)
expected := strings.TrimSpace(`<no state>`)
if actual != expected {
t.Fatalf("expected:\n\n%s\n\nactual:\n\n%s", expected, actual)
}