camunda/camunda-8-js-sdk

Intermittent failure in Client-ThrowError integration test

Opened this issue · 3 comments

There is an annoying intermittent failure in this test:

FAIL src/__tests__/zeebe/integration/Client-ThrowError.spec.ts (23.129 s)
Can set variables when throwing a BPMN Error

    4 DEADLINE_EXCEEDED: Time out between gateway and broker: Request command-api-3 to zeebe-0.zeebe-broker-service.b18e8686-c393-4a4f-afe1-13cb4fbedeab-zeebe.svc.cluster.local:26501 timed out in PT20S
    ```

It doesn't happen with regularity, and typically re-running the test will cause it to pass. 

Observed on integration test with Saas in GitHub CI.

One of the tests - to set variables when throwing an error - didn't work because the BPMN error symbol needs to explicitly map output variables to the variables in the global scope.

To try to address this: there are two tests in that test that use the same BPMN diagram. I have split them so that they are completely isolated and use different processes and task types.

#156