core: Fix TestContext2Apply_outputOrphanModule

The new state.String is not quite identical to the old, so we'll assert
an empty state in a more direct way.
This commit is contained in:
Martin Atkins 2018-09-25 17:14:19 -07:00
parent b6e9a5e5a4
commit 1cfaf52406
1 changed files with 2 additions and 3 deletions

View File

@ -4274,9 +4274,8 @@ func TestContext2Apply_outputOrphanModule(t *testing.T) {
t.Fatalf("diags: %s", diags.Err())
}
actual = strings.TrimSpace(state.String())
if actual != "" {
t.Fatalf("expected no state, got:\n%s", actual)
if !state.Empty() {
t.Fatalf("wrong final state %s\nwant empty state", spew.Sdump(state))
}
}