core: Fix TestContext2Apply_destroyDeeplyNestedModule
The new state.String() has slightly different output for an empty state, so we'll test that it's empty in a more direct way.
This commit is contained in:
parent
d1f95ea6a7
commit
1885f107a5
|
@ -6282,9 +6282,8 @@ func TestContext2Apply_destroyDeeplyNestedModule(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test that things were destroyed
|
// Test that things were destroyed
|
||||||
actual := strings.TrimSpace(state.String())
|
if !state.Empty() {
|
||||||
if actual != "" {
|
t.Fatalf("wrong final state %s\nwant empty state", spew.Sdump(state))
|
||||||
t.Fatalf("epected no state, got: %s", actual)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue