cadence-client
cadence-client copied to clipboard
QueryWorkflow in unit test
In unit test, the QueryWorkflow can only be used when the test workflow is running. If the workflow stops, the QueryWorkflow won't work.
a Q since I haven't tried this: I'd think QueryWorkflow should be called in tests in a delayed callback, since you'll need to execute it at some simulated time. does it work within there? (edit: or after the workflow completes... that'd be useful sometimes. I'm guessing that's what you mean?)
I believe it works from the delayed callback. This issue is to support it working after ExecuteWorkflow returns.