fix: 가오픈 명령과 GAME WALL 시간 경계 회귀 수정

This commit is contained in:
2026-09-05 00:55:33 +00:00
parent 1d53e6f226
commit 3437cd99f4
25 changed files with 458 additions and 71 deletions
@@ -108,7 +108,8 @@ describeDatabase('gateway release operation persistence', () => {
await connector.prisma.$executeRaw`
UPDATE "gateway_release_operation"
SET "lease_until" = CURRENT_TIMESTAMP - INTERVAL '1 second'
SET "lease_until" = date_trunc('milliseconds', CURRENT_TIMESTAMP)
- INTERVAL '1 second' + INTERVAL '123 microseconds'
WHERE "id" = ${operation.id}
`;
await expect(
@@ -417,7 +417,8 @@ describeDatabase('gateway operation lease and profile serialization', () => {
).resolves.toBeNull();
await connector.prisma.$executeRaw`
UPDATE "gateway_operation"
SET "lease_until" = CURRENT_TIMESTAMP - INTERVAL '1 second'
SET "lease_until" = date_trunc('milliseconds', CURRENT_TIMESTAMP)
- INTERVAL '1 second' + INTERVAL '123 microseconds'
WHERE "id" = ${operation.id}
`;
const reclaimed = await repository.claimNextOperation(new Date(startedAt.getTime() + 1_001), {