Skip to content

Commit ee0636a

Browse files
committed
change check to match suffix
Signed-off-by: Spike Curtis <spike@coder.com>
1 parent 8903040 commit ee0636a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/templateversions_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,9 @@ func TestPatchCancelTemplateVersion(t *testing.T) {
311311
// job gets marked Failed when there is an Error; in practice we never get to Status = Canceled
312312
// because provisioners report an Error when canceled. We check the Error string to ensure we don't mask
313313
// other errors in this test.
314+
t.Logf("got version %s | %s", version.Job.Error, version.Job.Status)
314315
return assert.NoError(t, err) &&
315-
version.Job.Error == "canceled" &&
316+
strings.HasSuffix(version.Job.Error, "canceled") &&
316317
version.Job.Status == codersdk.ProvisionerJobFailed
317318
}, testutil.WaitShort, testutil.IntervalFast)
318319
})

0 commit comments

Comments
 (0)