Skip to content

Commit

Permalink
Increase timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
daisykucharski committed Oct 16, 2023
1 parent a8b2d76 commit 96e3372
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/api-v2/test/auth/auth.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/api-v2/test/major/major.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/api-v2/test/plan/plan.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "../../test/testingData";

jest.useRealTimers();
jest.setTimeout(10000);
jest.setTimeout(50000);

describe("PlanController (e2e)", () => {
let app: INestApplication;
Expand Down
2 changes: 1 addition & 1 deletion packages/api-v2/test/student/student.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 96e3372

Please sign in to comment.