test: exercise code queue claim move race
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user