From 297f1019d5639973a1e2ac4d313f80d8427ecdd7 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Fri, 7 Sep 2018 14:40:40 -0700 Subject: [PATCH] core: Fix logic error in TestContext2Apply_multiRef --- terraform/context_apply_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/context_apply_test.go b/terraform/context_apply_test.go index e3033124e..e0b141e74 100644 --- a/terraform/context_apply_test.go +++ b/terraform/context_apply_test.go @@ -9225,7 +9225,7 @@ func TestContext2Apply_multiRef(t *testing.T) { } deps := state.Modules[""].Resources["aws_instance.other"].Instances[addrs.NoKey].Current.Dependencies - if len(deps) > 1 || deps[0].String() != "aws_instance.create" { + if len(deps) != 1 || deps[0].String() != "aws_instance.create" { t.Fatalf("expected 1 depends_on entry for aws_instance.create, got %q", deps) } }