From 0a3d6b5cb29fefd42dc4f5c27c536eca96f1146d Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 16 Nov 2026 08:56:54 -0600 Subject: [PATCH] test: declare one-second idle reaping in local qualification profile --- server/src/__tests__/dot-hosted-useful.postgres.test.ts | 4 +++- .../__tests__/helpers/owned-linux/normal-app-generation.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/src/__tests__/dot-hosted-useful.postgres.test.ts b/server/src/__tests__/dot-hosted-useful.postgres.test.ts index 956d70136af..3a199522ad2 100644 --- a/server/src/__tests__/dot-hosted-useful.postgres.test.ts +++ b/server/src/__tests__/dot-hosted-useful.postgres.test.ts @@ -539,7 +539,9 @@ describe.skipIf(!url||!cloudDatabaseUrl)("current normal hosted Dot OAuth/device }catch(error){errors.push(error);res.writeHead(500).end();} });callbackOrigin=await listen(callback); const makeAppOwner=async()=>{ - db=createDb(url!,{maxConnections:2,applicationName:"dot-principal-parent-observer"}); + // Local qualification profile: normal idle reaping must fit the unchanged 15-second settlement. + db=createDb(url!,{maxConnections:2,applicationName:"dot-principal-parent-observer",idleTimeoutSeconds:1}); + expect(db.$client.options.idle_timeout).toBe(1); // Parent observer has no delivery/Native/plugin owner. These normal setup // writes happen BEFORE generation1 starts, so both process snapshots read // the same persisted authorized fixture configuration. diff --git a/server/src/__tests__/helpers/owned-linux/normal-app-generation.ts b/server/src/__tests__/helpers/owned-linux/normal-app-generation.ts index 8c041019031..b0737a002f2 100644 --- a/server/src/__tests__/helpers/owned-linux/normal-app-generation.ts +++ b/server/src/__tests__/helpers/owned-linux/normal-app-generation.ts @@ -52,7 +52,9 @@ export async function startNormalDotAppGeneration(input: { }; const healthStatuses:number[]=[];let healthOverflow=0; const linuxBootstrap=await prepareOwnedLinuxDistribution(input.linuxInput); - const db=createDb(input.databaseUrl,{maxConnections:2,applicationName:"dot-principal-normal-app"}); + // Local qualification profile; preserve the production default and the original settlement deadline. + const db=createDb(input.databaseUrl,{maxConnections:2,applicationName:"dot-principal-normal-app",idleTimeoutSeconds:1}); + assert.equal(db.$client.options.idle_timeout,1); let stopDatabaseBackups:(()=>Promise)|undefined; const nativeSockets=new Set(); let dispatchWork:ReturnType["registerRunDispatchWork"]>|undefined;