Skip to content

Commit

Permalink
chore: Disable processRecurrence tests (#10642)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch authored Jan 8, 2025
1 parent d6ba0cc commit be72f7a
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions packages/server/__tests__/processRecurrence.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ beforeAll(async () => {
})
})

test('Should not end meetings that are not scheduled to end', async () => {
// TODO all these tests regularly timeout or the tests influence each other
test.skip('Should not end meetings that are not scheduled to end', async () => {
const pg = getKysely()

const meetingId = generateUID()
Expand Down Expand Up @@ -118,7 +119,8 @@ test('Should not end meetings that are not scheduled to end', async () => {
expect(actualMeeting.endedAt).toBeFalsy()
})

test('Should not end meetings that are scheduled to end in the future', async () => {
// TODO s.a.
test.skip('Should not end meetings that are scheduled to end in the future', async () => {
const pg = getKysely()

const meetingId = generateUID()
Expand Down Expand Up @@ -165,7 +167,8 @@ test('Should not end meetings that are scheduled to end in the future', async ()
await pg.deleteFrom('NewMeeting').where('id', '=', meetingId).execute()
})

test('Should end meetings that are scheduled to end in the past', async () => {
// TODO s.a.
test.skip('Should end meetings that are scheduled to end in the past', async () => {
const pg = getKysely()

const meetingId = generateUID()
Expand Down Expand Up @@ -211,7 +214,8 @@ test('Should end meetings that are scheduled to end in the past', async () => {
expect(actualMeeting.endedAt).toBeTruthy()
}, 10000)

test('Should end the current team prompt meeting and start a new meeting', async () => {
// TODO s.a.
test.skip('Should end the current team prompt meeting and start a new meeting', async () => {
const pg = getKysely()
const startDate = dayjs().utc().subtract(2, 'day').set('hour', 9)
const dateTime = toDateTime(startDate, 'UTC')
Expand Down Expand Up @@ -287,7 +291,8 @@ RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU`
})
})

test('Should end the current retro meeting and start a new meeting', async () => {
// TODO s.a.
test.skip('Should end the current retro meeting and start a new meeting', async () => {
const pg = getKysely()

// Create a meeting series that's been going on for a few days, and happens daily at 9a UTC.
Expand Down Expand Up @@ -368,7 +373,8 @@ RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU`
})
})

test('Should only start a new meeting if it would still be active', async () => {
// TODO s.a.
test.skip('Should only start a new meeting if it would still be active', async () => {
const pg = getKysely()

const startDate = dayjs().utc().subtract(2, 'day').set('hour', 9)
Expand Down Expand Up @@ -433,7 +439,8 @@ RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU`
expect(actualMeeting.endedAt).toBeTruthy()
}, 10000)

test('Should not start a new meeting if the rrule has not started', async () => {
// TODO s.a.
test.skip('Should not start a new meeting if the rrule has not started', async () => {
const pg = getKysely()

const startDate = dayjs().utc().add(1, 'day').set('hour', 9)
Expand Down Expand Up @@ -498,7 +505,8 @@ RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU`
expect(actualMeeting.endedAt).toBeTruthy()
})

test('Should not hang if the rrule interval is invalid', async () => {
// TODO s.a.
test.skip('Should not hang if the rrule interval is invalid', async () => {
const pg = getKysely()

const startDate = dayjs().utc().subtract(2, 'day').set('hour', 9)
Expand Down

0 comments on commit be72f7a

Please sign in to comment.