Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(minikube): isolate T1 role-reset suites from live control-postgres

Alfredo Lopeza58a18a57f30
diff --git a/control-api/vitest.config.ts b/control-api/vitest.config.ts
index 501489f2e..18e116d31 100644
--- a/control-api/vitest.config.ts
+++ b/control-api/vitest.config.ts
@@ -14,6 +14,10 @@ export default defineConfig({
// after a timeout because the abandoned async work may still commit.
retry: process.env.CONTROL_API_REAL_PG_ADMIN_URL ? 0 : 2,
testTimeout: 10_000,
+ // Real-Postgres beforeAll runs initDb across the full migration list.
+ // Default hookTimeout follows testTimeout (10s) and turns a slow CREATE
+ // DATABASE into skipped tests with an empty JSON reporter message.
+ hookTimeout: process.env.CONTROL_API_REAL_PG_ADMIN_URL ? 60_000 : 10_000,
sequence: {
hooks: 'list',
},
diff --git a/gfs-controller/vitest.config.ts b/gfs-controller/vitest.config.ts
index 56b64f4a1..f212b042d 100644
--- a/gfs-controller/vitest.config.ts
+++ b/gfs-controller/vitest.config.ts
@@ -5,5 +5,6 @@ export default defineConfig({
setupFiles: ["test/realPostgres.requirement.ts"],
include: ["src/**/*.test.ts", "src/**/__tests__/**/*.ts", "test/**/*.test.ts"],
exclude: ["dist/**", "node_modules/**"],
+ hookTimeout: process.env.CONTROL_API_REAL_PG_ADMIN_URL ? 60_000 : 10_000,
},
});