camunda/camunda-8-js-sdk

Intermittent failure of Tasklist test in GitHub CI on SaaS

jwulf opened this issue · 1 comments

TasklistApiClient
    Read operations
      ✓ can request all tasks (16893 ms)
      ✕ can request a task with parameters (15778 ms)
      ✓ gets all fields for a task (13967 ms)
      ✓ can request a specific task (14823 ms)
      ✓ can retrieve an embedded form (13699 ms)
    Write operations
      ✓ can claim a task (14465 ms)
      ✓ will not allow a task to be claimed twice (15518 ms)
      ✓ can unclaim task (166[31](https://github.com/camunda/camunda-8-js-sdk/actions/runs/9009529795/job/24753909059#step:5:32) ms)
      ✓ can complete a Task (16938 ms)
  ● TasklistApiClient › Read operations › can request a task with parameters
    expect(received).toBeGreaterThan(expected)
    Expected: > 0
    Received:   0
      70 | 				state: 'CREATED',
      71 | 			})
    > 72 | 			expect(tasks.length).toBeGreaterThan(0)
         | 			                     ^
      73 | 		})
      74 |
      75 | 		it('gets all fields for a task', async () => {
      at Object.<anonymous> (src/__tests__/tasklist/tasklist.integration.spec.ts:72:25)

Probably eventual consistency.

We're already waiting for 13 seconds for the task to be created in Tasklist (dealing with eventual consistency).

Rather than messing with the test, I think that implementing #147 will deal with this.