uber-go / cadence-client

Framework for authoring workflows and activities running on top of the Cadence orchestration engine.
https://cadenceworkflow.io
MIT License
339 stars 128 forks source link

Adjust startedCount assertion in Test_WorkflowLocalActivityWithMockAndListeners #1353

Closed natemort closed 1 day ago

natemort commented 2 days ago

Execution of the LocalActivities happens asynchronously from the workflow execution. If the local activity has already been canceled by the time it goes to start the activity then the started listener is never invoked, and the test observes only a single activity being started. This is valid as the Workflow is written so adjust the assertion against it.

This seems to be happening more frequently after we migrated our CI, internal reference CDNC-9656

What changed?

Why?

How did you test it?

Potential risks