diff --git a/backend/tests/integration/subtask-ordering.test.js b/backend/tests/integration/subtask-ordering.test.js index 86d1bc9..deffd2e 100644 --- a/backend/tests/integration/subtask-ordering.test.js +++ b/backend/tests/integration/subtask-ordering.test.js @@ -325,15 +325,13 @@ describe('Subtask Ordering', () => { // Add subtasks in multiple concurrent requests const promises = [ - agent - .patch(`/api/task/${createResponse.body.id}`) - .send({ - name: 'Parent Task', - subtasks: [ - { name: 'Batch 1 - Task 1', isNew: true }, - { name: 'Batch 1 - Task 2', isNew: true }, - ], - }), + agent.patch(`/api/task/${createResponse.body.id}`).send({ + name: 'Parent Task', + subtasks: [ + { name: 'Batch 1 - Task 1', isNew: true }, + { name: 'Batch 1 - Task 2', isNew: true }, + ], + }), // Note: This test demonstrates the limitation - concurrent updates // may result in inconsistent state. In practice, the UI prevents this. ];