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:
parent
f439422b6f
commit
81b5244584
|
@ -5303,9 +5303,7 @@ func TestContext2Apply_provisionerDestroyModule(t *testing.T) {
|
||||||
t.Fatalf("diags: %s", diags.Err())
|
t.Fatalf("diags: %s", diags.Err())
|
||||||
}
|
}
|
||||||
|
|
||||||
checkStateString(t, state, `
|
checkStateString(t, state, `<no state>`)
|
||||||
module.child:
|
|
||||||
<no state>`)
|
|
||||||
|
|
||||||
// Verify apply was invoked
|
// Verify apply was invoked
|
||||||
if !pr.ProvisionResourceCalled {
|
if !pr.ProvisionResourceCalled {
|
||||||
|
|
Loading…
Reference in New Issue