From 2ed4c7e6df31b6e6290186c5ee6b7142778c6b8a Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Mon, 23 Feb 2026 12:48:36 -0600 Subject: [PATCH] test: fail test and report on init error (#22269) Closes https://github.com/coder/internal/issues/1353 Does not solve the issue, but the error is currently opaque. This fails the test when the init fails, hopefully raising up the error. --- provisioner/terraform/provision_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/provisioner/terraform/provision_test.go b/provisioner/terraform/provision_test.go index 72d7565fa8..46c1c980b2 100644 --- a/provisioner/terraform/provision_test.go +++ b/provisioner/terraform/provision_test.go @@ -1107,6 +1107,7 @@ func TestProvision(t *testing.T) { require.Contains(t, initComplete.Error, testCase.InitErrorContains) return } + require.Empty(t, initComplete.Error, "unexpected init error") planRequest := &proto.Request{Type: &proto.Request_Plan{Plan: &proto.PlanRequest{ Metadata: testCase.Metadata,