core: Fix TestContext2Apply_destroyNestedModule
Our string representation of state for testing now returns "<no state>" when empty, rather than the empty string.
This commit is contained in:
parent
50b8053476
commit
5d3f642585
|
@ -6221,7 +6221,7 @@ func TestContext2Apply_destroyNestedModule(t *testing.T) {
|
||||||
|
|
||||||
// Test that things were destroyed
|
// Test that things were destroyed
|
||||||
actual := strings.TrimSpace(state.String())
|
actual := strings.TrimSpace(state.String())
|
||||||
if actual != "" {
|
if actual != "<no state>" {
|
||||||
t.Fatalf("expected no state, got: %s", actual)
|
t.Fatalf("expected no state, got: %s", actual)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue