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:
parent
b6e9a5e5a4
commit
1cfaf52406
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue