Skip to content

Commit

Permalink
chore: fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Mar 22, 2024
1 parent ec37637 commit ac28a22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ describe('Job', function () {

await expect(
job.moveToFailed(new Error('test error'), '0'),
).to.be.rejectedWith(`Missing key for job ${job.id}. failed`);
).to.be.rejectedWith(`Missing key for job ${job.id}. moveToFinished`);

const processed = await client.hgetall(
`${prefix}:${queueName}:${job.id}`,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ describe('workers', function () {

const job = await queue.add('test', { bar: 'baz' });

const errorMessage = `Missing lock for job ${job.id}. failed`;
const errorMessage = `Missing lock for job ${job.id}. moveToFinished`;
const workerError = new Promise<void>((resolve, reject) => {
worker.once('error', error => {
try {
Expand Down Expand Up @@ -1853,7 +1853,7 @@ describe('workers', function () {

const job = await queue.add('test', { bar: 'baz' });

const errorMessage = `Lock mismatch for job ${job.id}. Cmd failed from active`;
const errorMessage = `Lock mismatch for job ${job.id}. Cmd moveToFinished from active`;
const workerError = new Promise<void>((resolve, reject) => {
worker.once('error', error => {
try {
Expand Down

0 comments on commit ac28a22

Please sign in to comment.