stacks: add comment

Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
TF-13965
Daniel Schmidt 2 years ago committed by GitHub
parent 3267718d3d
commit 664bb21738
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -214,6 +214,8 @@ func TestStackCallCheckInstances(t *testing.T) {
t.Errorf("wrong result\ngot: %#v\nwant: %#v", gotVal, wantVal)
}
// When for_each is unknown, CheckInstances returns a single instance
// whose key is `*` to represent the unknown number of instances.
gotInsts, diags := call.CheckInstances(ctx, InspectPhase)
assertNoDiags(t, diags)
if got, want := len(gotInsts), 1; got != want {

Loading…
Cancel
Save