Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(test): absorb teardown 57P01 in sdk finalization realPostgres suite
M60d0044bafe1
diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex a223c56f9..7accde0c0 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.550",+ "version": "0.1.551","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.550",+ "version": "0.1.551","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/image-policy": "file:../packages/image-policy",diff --git a/control-api/package.json b/control-api/package.jsonindex 05ea1f10b..b3b94222e 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.550",+ "version": "0.1.551","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/test/services.pluginWorkloadSdkFinalization.realPostgres.integration.test.ts b/control-api/test/services.pluginWorkloadSdkFinalization.realPostgres.integration.test.tsindex 2babc2f9a..13ee9df03 100644--- a/control-api/test/services.pluginWorkloadSdkFinalization.realPostgres.integration.test.ts+++ b/control-api/test/services.pluginWorkloadSdkFinalization.realPostgres.integration.test.ts@@ -63,6 +63,11 @@ describeRealPostgres('Plugin Workload SDK finalization on real PostgreSQL', () =adminPool = new Pool({ connectionString: adminUrl })await adminPool.query(`CREATE DATABASE "${database.replace(/"/g, '""')}"`)dbPool = new Pool({ connectionString })+ // The pool holds idle connections; when afterAll terminates backends+ // before DROP DATABASE, a client that is still mid-shutdown surfaces a+ // 57P01 FATAL on the pool. Absorb it so teardown is clean (the pool is+ // being torn down anyway).+ dbPool.on('error', () => {})await initDb({ connect: () => dbPool.connect() })})