Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make WorkflowTester tests use the main context as the worker context. #943

Merged
merged 1 commit into from Feb 6, 2020

Conversation

zach-klippenstein
Copy link
Collaborator

This is an enhancement to #940 that gives more reasonable behavior. The context
parameter to the test methods are primarily used to pass in test dispatchers, and
those dispatchers often really only need to be used for workers.

Since I don't know of a use case for specifying context separately just for workers,
this also removes the WorkflowTestParams.workerContext property.

@zach-klippenstein zach-klippenstein added this to the kotlin v0.23.2 milestone Feb 6, 2020
@zach-klippenstein zach-klippenstein added this to Needs review in Workflow (Kotlin) via automation Feb 6, 2020
@zach-klippenstein zach-klippenstein force-pushed the zachklipp/better-worker-fix branch 2 times, most recently from befaf36 to dbe6aa9 Compare February 6, 2020 21:47
This is an enhancement to #940 that gives more reasonable behavior. The context
parameter to the test methods are primarily used to pass in test dispatchers, and
those dispatchers often really only need to be used for workers.

Since I don't know of a use case for specifying context separately just for workers,
this also removes the `WorkflowTestParams.workerContext` property.
@zach-klippenstein zach-klippenstein removed the request for review from rjrjr February 6, 2020 22:35
@zach-klippenstein zach-klippenstein merged commit c4249b0 into release-v0.23.x Feb 6, 2020
Workflow (Kotlin) automation moved this from Needs review to Done Feb 6, 2020
@zach-klippenstein zach-klippenstein deleted the zachklipp/better-worker-fix branch February 6, 2020 22:40
zach-klippenstein added a commit that referenced this pull request Feb 11, 2020
PRs #940 and #943 have a bug where the worker context isn't passed from a parent workflow
to child `WorkflowNode`s. This fixes that.
zach-klippenstein added a commit that referenced this pull request Feb 11, 2020
PRs #940 and #943 have a bug where the worker context isn't passed from a parent workflow
to child `WorkflowNode`s. This fixes that.
@zach-klippenstein zach-klippenstein added the kotlin Affects the Kotlin library. label Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kotlin Affects the Kotlin library.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants