Skip to content

Commit

Permalink
fix: quit DB in jest
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick committed Jul 15, 2024
1 parent 8a1b2e0 commit e8b960b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/server/dataloader/__tests__/isOrgVerified.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ afterEach(async () => {
await truncatePGTables('Organization', 'User', 'OrganizationUser')
})

afterAll(async () => {
await getKysely().destroy()
})

test('Founder is billing lead', async () => {
await addUsers([
{
Expand Down
5 changes: 5 additions & 0 deletions packages/server/utils/__tests__/RedisLockQueue.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/* eslint-env jest */
import sleep from 'parabol-client/utils/sleep'
import RedisLockQueue from '../RedisLockQueue'
import getRedis from '../getRedis'

afterAll(async () => {
await getRedis().quit()
})

test('lock calls are queued properly', async () => {
await Promise.all(
Expand Down

0 comments on commit e8b960b

Please sign in to comment.