Fix unit test

The recent change in error message caused a test to fail, this is now
fixed. No functional changes.
This commit is contained in:
Sybren A. Stüvel 2022-09-01 15:17:04 +02:00
parent 38b45419ae
commit 8368feebac

View File

@ -201,7 +201,7 @@ func TestSubmitJobWithEtag(t *testing.T) {
err := mf.flamenco.SubmitJob(echoCtx) err := mf.flamenco.SubmitJob(echoCtx)
assert.NoError(t, err) assert.NoError(t, err)
assertResponseAPIError(t, echoCtx, assertResponseAPIError(t, echoCtx,
http.StatusPreconditionFailed, "rejecting job, job type etag does not match") http.StatusPreconditionFailed, "rejecting job because its settings are outdated, refresh the job type")
} }
// Expect the job compiler to be called. // Expect the job compiler to be called.