core: TestContext2Plan_countComputedModule expectedErr

The phrasing of this message changed as part of updating it to use HCL
diagnostics rather than just a string.
This commit is contained in:
Martin Atkins 2018-05-22 11:54:41 -07:00
parent e6478599c6
commit 2b3b6c2407

View File

@ -1560,7 +1560,7 @@ func TestContext2Plan_countComputedModule(t *testing.T) {
_, err := ctx.Plan()
expectedErr := "aws_instance.bar: value of 'count'"
expectedErr := "a number is required"
if !strings.Contains(fmt.Sprintf("%s", err), expectedErr) {
t.Fatalf("expected err would contain %q\nerr: %s\n",
expectedErr, err)