test(server): update nonce-aware fixtures

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-08-25 19:22:02 +00:00
1 parent 245ffea549
commit 62812fd400
1 file changed
+14 -7
+14 -7
View File
@@ -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: {