mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 23:06:17 +01:00
test: declare one-second idle reaping in local qualification profile
This commit is contained in:
1 parent
9a594b3527
commit
0a3d6b5cb2
2 files changed
+6
-2
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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<void>)|undefined;
|
||||
const nativeSockets=new Set<Socket>();
|
||||
let dispatchWork:ReturnType<ReturnType<typeof heartbeatService>["registerRunDispatchWork"]>|undefined;
|
||||
|
||||
Reference in new issue
Block a user