mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
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:
1 parent
97231edb81
commit
0bdf023db9
1 file changed
+3
-1
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user