Skip to content

Commit

Permalink
chore: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ogp-weeloong committed May 7, 2024
1 parent 929b5e3 commit 031e88d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/backend/src/queues/__tests__/action.itest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { describe, expect, it } from 'vitest'

import apps from '@/apps'

import { actionQueuesByName } from '../action'

describe('Action Queues', () => {
Expand All @@ -9,4 +11,17 @@ describe('Action Queues', () => {
expect(queueName).not.toContain(':')
}
})

it('check that delayable queues have queue rate limits defined', () => {
for (const app of Object.values(apps)) {
if (!app.queue) {
continue
}

if (app.queue.isQueueDelayable) {
expect(app.queue.queueRateLimit).not.toBeNull()
expect(app.queue.queueRateLimit).not.toBeUndefined()
}
}
})
})

0 comments on commit 031e88d

Please sign in to comment.