Skip to content

Commit a9e01bf

Browse files
authored
chore: fix terraform tests (coder#9006)
1 parent 7b35f3b commit a9e01bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/actions/setup-tf/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ runs:
77
- name: Install Terraform
88
uses: hashicorp/setup-terraform@v2
99
with:
10-
terraform_version: ~1.5
10+
terraform_version: 1.5.5
1111
terraform_wrapper: false

provisioner/terraform/provision_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,15 @@ func TestProvision(t *testing.T) {
351351
Files: map[string]string{
352352
"main.tf": `a`,
353353
},
354-
ErrorContains: "plan terraform",
354+
ErrorContains: "initialize terraform",
355355
ExpectLogContains: "Argument or block definition required",
356356
},
357357
{
358358
Name: "bad-syntax-2",
359359
Files: map[string]string{
360360
"main.tf": `;asdf;`,
361361
},
362-
ErrorContains: "plan terraform",
362+
ErrorContains: "initialize terraform",
363363
ExpectLogContains: `The ";" character is not valid.`,
364364
},
365365
{

0 commit comments

Comments
 (0)