Skip to content

Commit

Permalink
disable check_meeting_overlap trigger for tests
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 Sep 27, 2024
1 parent a2c582e commit f2d5f15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/server/__tests__/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import getKysely from '../postgres/getKysely'
async function setup() {
// The IP address is always localhost
// so the safety checks will eventually fail if run too much
await sql`TRUNCATE TABLE "PasswordResetRequest"`.execute(getKysely())
const pg = getKysely()
await sql`
TRUNCATE TABLE "PasswordResetRequest";
ALTER TABLE "NewMeeting" DISABLE TRIGGER "check_meeting_overlap";
`.execute(pg)
}

export default setup

0 comments on commit f2d5f15

Please sign in to comment.