update GraphBuilder_targetModule test

The updates CLoseProviderTransformer connects all provider instances,
which is technically the correct behavior.
This commit is contained in:
James Bardin 2017-11-02 09:26:10 -04:00
parent a14fd0344c
commit 8388dfd2f9
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func TestApplyGraphBuilder(t *testing.T) {
actual := strings.TrimSpace(g.String()) actual := strings.TrimSpace(g.String())
expected := strings.TrimSpace(testApplyGraphBuilderStr) expected := strings.TrimSpace(testApplyGraphBuilderStr)
if actual != expected { if actual != expected {
t.Fatalf("bad: %s", actual) t.Fatalf("expected:\n%s\n\ngot:\n%s", expected, actual)
} }
} }
@ -515,6 +515,7 @@ provider.aws (close)
aws_instance.other aws_instance.other
module.child.aws_instance.create module.child.aws_instance.create
module.child.aws_instance.other module.child.aws_instance.other
module.child.provider.aws
provider.aws provider.aws
provisioner.exec (close) provisioner.exec (close)
module.child.aws_instance.create module.child.aws_instance.create