diff --git a/terraform/context_apply_test.go b/terraform/context_apply_test.go index c0e6ef59a6..1582647542 100644 --- a/terraform/context_apply_test.go +++ b/terraform/context_apply_test.go @@ -9775,7 +9775,7 @@ func TestContext2Apply_scaleInMultivarRef(t *testing.T) { Primary: &InstanceState{ ID: "foo", Attributes: map[string]string{ - "val": "foo", + "value": "foo", }, }, Provider: "provider.aws", @@ -9798,13 +9798,9 @@ func TestContext2Apply_scaleInMultivarRef(t *testing.T) { }) _, diags := ctx.Plan() - if diags.HasErrors() { - t.Fatalf("plan failed: %s", diags.Err()) - } + assertNoErrors(t, diags) // Applying the plan should now succeed _, diags = ctx.Apply() - if diags.HasErrors() { - t.Fatalf("apply failed: %s", diags.Err()) - } + assertNoErrors(t, diags) } diff --git a/terraform/test-fixtures/apply-resource-scale-in/main.tf b/terraform/test-fixtures/apply-resource-scale-in/main.tf index 00e53fb9f9..0363d89b7f 100644 --- a/terraform/test-fixtures/apply-resource-scale-in/main.tf +++ b/terraform/test-fixtures/apply-resource-scale-in/main.tf @@ -9,5 +9,5 @@ locals { } resource "aws_instance" "two" { - val = local.one_id + value = local.one_id }