core: TestContext2Plan_requiredModuleOutput to use t.Run
This allows us to see the results of the tests for all resources even if one of them fails.
This commit is contained in:
parent
21064771ea
commit
d73b2d778f
|
@ -5551,6 +5551,7 @@ func TestContext2Plan_requiredModuleOutput(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, res := range plan.Changes.Resources {
|
||||
t.Run(fmt.Sprintf("%s %s", res.Action, res.Addr), func(t *testing.T) {
|
||||
if res.Action != plans.Create {
|
||||
t.Fatalf("expected resource creation, got %s", res.Action)
|
||||
}
|
||||
|
@ -5576,5 +5577,6 @@ func TestContext2Plan_requiredModuleOutput(t *testing.T) {
|
|||
}
|
||||
|
||||
checkVals(t, expected, ric.After)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue