From 0bdf023db95fad44af08a931c8121d287bfe38ce Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 10 Sep 2026 08:50:57 -0500 Subject: [PATCH] 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 --- server/src/__tests__/execution-workspaces-service.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/__tests__/execution-workspaces-service.test.ts b/server/src/__tests__/execution-workspaces-service.test.ts index eebef34ef4..a7f4994b77 100644 --- a/server/src/__tests__/execution-workspaces-service.test.ts +++ b/server/src/__tests__/execution-workspaces-service.test.ts @@ -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 }; }