camunda-community-hub/node-red-contrib-zeebe

Fix flaky integration tests

pedesen opened this issue · 3 comments

Problem

One of two integration tests fails from time to time, due to the 25 seconds jest timeout. Presumably one test is completing tasks of the other tests, if they're executed in parallel.

Proposal

Either make sure to use a different task type or run them sequentially.

This should be fixed now with d5d8b51

still experiencing timeouts. Will investigate later.

The integration might benefit from implementing CreateWorkflowInstanceWithResult (#35), because the amount of setTimeouts could be reduced this way.