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.
This commit is contained in:
Steven Masley
2026-02-23 12:48:36 -06:00
committed by GitHub
parent 37a8e61ea2
commit 2ed4c7e6df
+1
View File
@@ -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,