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:
Martin Atkins 2018-11-01 17:32:30 -07:00
parent 21064771ea
commit d73b2d778f
1 changed files with 25 additions and 23 deletions

View File

@ -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)
})
}
}