test(server): seed ancestry cleanup before the sweep boundary

Keep delivery and concurrent-sweep assertions independent of database timestamp precision. Explicit timestamps in rotation tests remain unchanged.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta 2026-09-10 08:50:57 -05:00
parent 97231edb81
commit 0bdf023db9
1 changed files with 3 additions and 1 deletions

View File

@ -532,7 +532,9 @@ describeEmbeddedPostgres("executionWorkspaceService.getCloseReadiness", () => {
});
await db
.update(executionWorkspaces)
.set({ sourceIssueId, ...(overrides.updatedAt ? { updatedAt: overrides.updatedAt } : {}) })
// Delivery and concurrency tests need an already-eligible candidate,
// independent of database timestamp precision at the sweep boundary.
.set({ sourceIssueId, updatedAt: overrides.updatedAt ?? new Date("2020-01-01T00:00:00Z") })
.where(eq(executionWorkspaces.id, executionWorkspaceId));
return { companyId, projectId, executionWorkspaceId, sourceIssueId, worktreePath };
}