Skip to content

Commit c7c785f

Browse files
committed
test(adapter): improve active tracking cleanup
1 parent ba69213 commit c7c785f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/_utils/register_driver_test_suite.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export function registerDriverTestSuite(options: DriverTestSuiteOptions) {
7272

7373
await adapter.completeJob(job!.id, 'test-queue')
7474

75-
// Job should not reappear
75+
// Retry should have no effect since job is no longer active
76+
await adapter.retryJob(job!.id, 'test-queue')
77+
7678
const nextJob = await adapter.popFrom('test-queue')
7779
assert.isNull(nextJob)
7880
})
@@ -138,7 +140,9 @@ export function registerDriverTestSuite(options: DriverTestSuiteOptions) {
138140

139141
await adapter.failJob(job!.id, 'test-queue', new Error('Test error'))
140142

141-
// Job should not reappear
143+
// Retry should have no effect since job is no longer active
144+
await adapter.retryJob(job!.id, 'test-queue')
145+
142146
const nextJob = await adapter.popFrom('test-queue')
143147
assert.isNull(nextJob)
144148
})

0 commit comments

Comments
 (0)