mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-15 19:22:46 -06:00
core: Make TestContext2Apply_createBeforeDestroy fail helpful
This commit is contained in:
parent
7b3441f1c1
commit
14524600b1
@ -849,8 +849,9 @@ func TestContext2Apply_createBeforeDestroy(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mod := state.RootModule()
|
mod := state.RootModule()
|
||||||
if len(mod.Resources) != 1 {
|
if got, want := len(mod.Resources), 1; got != want {
|
||||||
t.Fatalf("bad: %s", state)
|
t.Logf("state:\n%s", state)
|
||||||
|
t.Fatalf("wrong number of resources %d; want %d", got, want)
|
||||||
}
|
}
|
||||||
|
|
||||||
actual := strings.TrimSpace(state.String())
|
actual := strings.TrimSpace(state.String())
|
||||||
|
Loading…
Reference in New Issue
Block a user