cadence-client icon indicating copy to clipboard operation
cadence-client copied to clipboard

QueryWorkflow in unit test

Open jc-fireball opened this issue 6 years ago • 2 comments

In unit test, the QueryWorkflow can only be used when the test workflow is running. If the workflow stops, the QueryWorkflow won't work.

jc-fireball avatar Oct 18 '19 18:10 jc-fireball

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?)

Groxx avatar Dec 02 '19 22:12 Groxx

I believe it works from the delayed callback. This issue is to support it working after ExecuteWorkflow returns.

mfateev avatar Dec 02 '19 22:12 mfateev