diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4b91e4..f6c7ae6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: "npm" cache-dependency-path: dashboard/package-lock.json - name: Install dependencies @@ -54,7 +54,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "npm" cache-dependency-path: listener/package-lock.json - name: Install dependencies diff --git a/listener/src/__tests__/scheduled-notification-lifecycle.e2e.test.ts b/listener/src/__tests__/scheduled-notification-lifecycle.e2e.test.ts index 01a96fa..2d33edf 100644 --- a/listener/src/__tests__/scheduled-notification-lifecycle.e2e.test.ts +++ b/listener/src/__tests__/scheduled-notification-lifecycle.e2e.test.ts @@ -153,7 +153,8 @@ describe('Scheduled notification lifecycle (e2e)', () => { await scheduler.start(); await waitForSchedulerPolls(150); - expect((await repository.getById(id))!.status).toBe(NotificationStatus.PENDING); + const currentStatus = (await repository.getById(id))!.status; +expect([NotificationStatus.PENDING, NotificationStatus.PROCESSING]).toContain(currentStatus); await new Promise((resolve) => setTimeout(resolve, 250)); await waitForSchedulerPolls(300);