From ed360c8adc061cef5552954ce00d19457c22bcef Mon Sep 17 00:00:00 2001 From: Ola Okelola Date: Fri, 29 Nov 2024 19:21:08 -0800 Subject: [PATCH] use --runInBand --- .github/workflows/node.js.yml | 4 ++-- examples/simple/src/ent/tests/user_full_text.test.ts | 2 +- ts/src/core/db_postgres_parallel.test.ts | 2 +- ts/src/testutils/db/temp_db.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 30589823a..5fafa5e08 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -31,7 +31,7 @@ jobs: env: POSTGRES_PASSWORD: postgres name: 'PGOPTIONS' - value: '-c max_connections=500' + value: '-c max_connections=200' # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready @@ -65,7 +65,7 @@ jobs: - run: npm ci - run: npm run build --if-present - - run: npm test + - run: npm test -- --runInBand env: POSTGRES_PASSWORD: 'postgres' POSTGRES_USER: 'postgres' diff --git a/examples/simple/src/ent/tests/user_full_text.test.ts b/examples/simple/src/ent/tests/user_full_text.test.ts index 0a3bd7076..1ac8be46d 100644 --- a/examples/simple/src/ent/tests/user_full_text.test.ts +++ b/examples/simple/src/ent/tests/user_full_text.test.ts @@ -27,7 +27,7 @@ beforeAll(async () => { password, port: 5432, sslmode: "disable", - max: 500, + max: 200, }, // log: ["query"], }); diff --git a/ts/src/core/db_postgres_parallel.test.ts b/ts/src/core/db_postgres_parallel.test.ts index 9ceecde62..a25531056 100644 --- a/ts/src/core/db_postgres_parallel.test.ts +++ b/ts/src/core/db_postgres_parallel.test.ts @@ -29,7 +29,7 @@ test("lots of writes at once", async () => { user, password, database: tdb.getDB(), - max: 500, + max: 200, host: "localhost", }, }); diff --git a/ts/src/testutils/db/temp_db.ts b/ts/src/testutils/db/temp_db.ts index 6a6a92701..a0d78eafd 100644 --- a/ts/src/testutils/db/temp_db.ts +++ b/ts/src/testutils/db/temp_db.ts @@ -510,7 +510,7 @@ export class TempDB { DB.initDB({ connectionString: connStr, cfg: { - max: 500, + max: 200, idleTimeoutMillis: 100, }, });