mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-27 02:44:50 +01:00
test(server): update nonce-aware fixtures
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
245ffea549
commit
62812fd400
1 file changed
+14
-7
@@ -207,16 +207,23 @@ describeEmbeddedPostgres("routine service live-execution coalescing", () => {
|
||||
return { companyId, agentId, issueSvc, projectId, routine, svc, wakeups };
|
||||
}
|
||||
|
||||
async function armWorktreeExecution(cutoff: Date, instanceId = "worktree-routines-test") {
|
||||
await db.insert(instanceSettings).values({
|
||||
singletonKey: "default",
|
||||
general: {},
|
||||
experimental: {
|
||||
async function armWorktreeExecution(
|
||||
cutoff: Date,
|
||||
instanceId = "00000000-0000-4000-8000-000000000001",
|
||||
) {
|
||||
const experimental = {
|
||||
enableWorktreeRunExecution: true,
|
||||
worktreeRunExecutionInstanceNonce: instanceId,
|
||||
worktreeRunExecutionActivatedAt: cutoff.toISOString(),
|
||||
worktreeRunExecutionActivationInstanceId: instanceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
await db
|
||||
.insert(instanceSettings)
|
||||
.values({ singletonKey: "default", general: {}, experimental })
|
||||
.onConflictDoUpdate({
|
||||
target: instanceSettings.singletonKey,
|
||||
set: { experimental },
|
||||
});
|
||||
}
|
||||
|
||||
async function insertDispatchedRun(input: {
|
||||
|
||||
Reference in new issue
Block a user