test: exercise code queue claim move race

This commit is contained in:
Codex
2026-05-17 06:57:53 +00:00
parent b91fb1a2e1
commit a7593c1473
@@ -1573,7 +1573,7 @@ async function runDatabaseClaimMoveSelfTest(): Promise<JsonValue | null> {
method: "POST",
body: JSON.stringify({ queueId: targetQueueId }),
headers: { "content-type": "application/json" },
}));
}), { bypassRoleCheck: true });
const after = await loadTaskFromDatabase(taskId);
const body = await response.json() as Record<string, JsonValue>;
if (response.status !== 409) throw new Error(`database stale move should return 409, got ${response.status}`);