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:
Martin Atkins 2018-09-25 17:19:47 -07:00
parent d1f95ea6a7
commit 1885f107a5
1 changed files with 2 additions and 3 deletions

View File

@ -6282,9 +6282,8 @@ func TestContext2Apply_destroyDeeplyNestedModule(t *testing.T) {
}
// Test that things were destroyed
actual := strings.TrimSpace(state.String())
if actual != "" {
t.Fatalf("epected no state, got: %s", actual)
if !state.Empty() {
t.Fatalf("wrong final state %s\nwant empty state", spew.Sdump(state))
}
}