core: Fix logic error in TestContext2Apply_multiRef

This commit is contained in:
Martin Atkins 2018-09-07 14:40:40 -07:00
parent 9632e032c4
commit 297f1019d5
1 changed files with 1 additions and 1 deletions

View File

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