Skip to content

Commit fffe3e9

Browse files
committed
test(worker): add missing assertion
1 parent ac56b8e commit fffe3e9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/worker.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ test.group('Worker', () => {
509509
})
510510

511511
test('should not retry timed out job when failOnTimeout is true', async ({ assert, cleanup }) => {
512-
assert.plan(2)
512+
assert.plan(3)
513513

514514
let attempts = 0
515515

@@ -557,6 +557,7 @@ test.group('Worker', () => {
557557
const cycle = await worker.processCycle(['default'])
558558
// @ts-ignore
559559
assert.equal(cycle.type, 'idle')
560+
assert.equal(attempts, 1)
560561
})
561562

562563
test('should use global worker timeout when job timeout is not set', async ({

0 commit comments

Comments
 (0)