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:
parent
2eea07750a
commit
69bcbfb813
|
@ -6494,11 +6494,7 @@ func TestContext2Apply_destroyModuleWithAttrsReferencingResource(t *testing.T) {
|
||||||
|
|
||||||
//Test that things were destroyed
|
//Test that things were destroyed
|
||||||
actual := strings.TrimSpace(state.String())
|
actual := strings.TrimSpace(state.String())
|
||||||
expected := strings.TrimSpace(`
|
expected := strings.TrimSpace(`<no state>`)
|
||||||
<no state>
|
|
||||||
module.child:
|
|
||||||
<no state>
|
|
||||||
`)
|
|
||||||
if actual != expected {
|
if actual != expected {
|
||||||
t.Fatalf("expected:\n\n%s\n\nactual:\n\n%s", expected, actual)
|
t.Fatalf("expected:\n\n%s\n\nactual:\n\n%s", expected, actual)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue