From 96e337248037f7c19f2e18f0f08270c190e04890 Mon Sep 17 00:00:00 2001 From: Daisy Kucharski Date: Mon, 16 Oct 2023 15:54:31 -0400 Subject: [PATCH] Increase timeouts --- .github/workflows/main.yml | 7 +++++-- packages/api-v2/test/auth/auth.e2e-spec.ts | 2 +- packages/api-v2/test/major/major.e2e-spec.ts | 2 +- packages/api-v2/test/plan/plan.e2e-spec.ts | 2 +- packages/api-v2/test/student/student.e2e-spec.ts | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ba81ce094..4185c81d9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,7 @@ jobs: POSTGRES_PASSWORD: graduatenu POSTGRES_DB: test ports: - - "5433:5432" + - "5432:5432" options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - name: Checkout code @@ -53,7 +53,10 @@ jobs: run: yarn test:e2e env: POSTGRES_HOST: localhost - POSTGRES_PORT: 5433 + POSTGRES_PORT: 5432 + POSTGRES_USER: postgres + POSTGRES_PASSWORD: graduatenu + POSTGRES_DB: test build-frontend-image: runs-on: ubuntu-latest steps: diff --git a/packages/api-v2/test/auth/auth.e2e-spec.ts b/packages/api-v2/test/auth/auth.e2e-spec.ts index 5a58bd8e8..92754da37 100644 --- a/packages/api-v2/test/auth/auth.e2e-spec.ts +++ b/packages/api-v2/test/auth/auth.e2e-spec.ts @@ -6,7 +6,7 @@ import { dropStudentTable, initializeApp } from "../../test/utils"; import { testUser1 } from "../../test/testingData"; jest.useRealTimers(); -jest.setTimeout(10000); +jest.setTimeout(50000); describe("AuthController (e2e)", () => { let app: INestApplication; diff --git a/packages/api-v2/test/major/major.e2e-spec.ts b/packages/api-v2/test/major/major.e2e-spec.ts index 9678c9a46..15e998160 100644 --- a/packages/api-v2/test/major/major.e2e-spec.ts +++ b/packages/api-v2/test/major/major.e2e-spec.ts @@ -3,7 +3,7 @@ import * as request from "supertest"; import { initializeApp } from "../../test/utils"; jest.useRealTimers(); -jest.setTimeout(10000); +jest.setTimeout(50000); describe("MajorController (e2e)", () => { let app: INestApplication; diff --git a/packages/api-v2/test/plan/plan.e2e-spec.ts b/packages/api-v2/test/plan/plan.e2e-spec.ts index 0b98a2c65..300784316 100644 --- a/packages/api-v2/test/plan/plan.e2e-spec.ts +++ b/packages/api-v2/test/plan/plan.e2e-spec.ts @@ -11,7 +11,7 @@ import { } from "../../test/testingData"; jest.useRealTimers(); -jest.setTimeout(10000); +jest.setTimeout(50000); describe("PlanController (e2e)", () => { let app: INestApplication; diff --git a/packages/api-v2/test/student/student.e2e-spec.ts b/packages/api-v2/test/student/student.e2e-spec.ts index ae80603f0..cad4b1d94 100644 --- a/packages/api-v2/test/student/student.e2e-spec.ts +++ b/packages/api-v2/test/student/student.e2e-spec.ts @@ -6,7 +6,7 @@ import { dropStudentTable, initializeApp } from "../../test/utils"; import { onboardedUser, testPlan, testUser1 } from "../../test/testingData"; jest.useRealTimers(); -jest.setTimeout(10000); +jest.setTimeout(50000); describe("StudentController (e2e)", () => { let app: INestApplication;