diff --git a/app/__test__/data/postgres.test.ts b/app/__test__/data/postgres.test.ts index 1560204d..58aa05bd 100644 --- a/app/__test__/data/postgres.test.ts +++ b/app/__test__/data/postgres.test.ts @@ -41,12 +41,12 @@ describe("postgres", () => { beforeAll(async () => { if (!(await isPostgresRunning())) { await $`docker run --rm --name bknd-test-postgres -d -e POSTGRES_PASSWORD=${credentials.password} -e POSTGRES_USER=${credentials.user} -e POSTGRES_DB=${credentials.database} -p ${credentials.port}:5432 postgres:17`; - await $waitUntil("Postgres is running", isPostgresRunning); + await $waitUntil("Postgres is running", isPostgresRunning, 500, 20); await new Promise((resolve) => setTimeout(resolve, 500)); } disableConsoleLog(); - }); + }, 30000); afterAll(async () => { if (await isPostgresRunning()) { try { diff --git a/app/__test__/modules/AppAuth.spec.ts b/app/__test__/modules/AppAuth.spec.ts index 59b0b1c4..15128c14 100644 --- a/app/__test__/modules/AppAuth.spec.ts +++ b/app/__test__/modules/AppAuth.spec.ts @@ -149,7 +149,7 @@ describe("AppAuth", () => { }); await app.build(); - app.registerAdminController(); + app.registerAdminController({ forceDev: true }); const spy = spyOn(app.module.auth.authenticator, "requestCookieRefresh"); // register custom route