Hello,
I’m trying out update-with-start which seems to have just made it into the Go SDK, but I’m having trouble figuring out a reasonable way to unit test HTTP handlers that execute a workflow with update-with-start and waits for the update result.
In summary what I’m doing is:
- execute an early return workflow as demonstrated in samples-go
- wait for the result
- return a http response
Unfortunately, without spinning up an actual temporal server, which significantly slows down the test start up time, it seems there is no way to unblock the future that’s returned from op.Get()
, which results in the test timing out every time. Is there any way to get around this?
I have created a reproduction of the scenario here: