You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handlers calling collaborator classes who return promises need those promises to have been created using the same ExecController that the handler is run with. This is a bit of a pain when running with UnitTest.handle.
FWIW for my purposes it was enough to write a utility method to grab it from the stored threadlocal:
This was effectively solved by the new ExecController.execController() method which lazily binds to the exec controller.
So, you can now do ExecController.execController().promiseOf(val). I think we can sweeten this even more by some static methods on Promise, but that can be a separate thing.
Handlers calling collaborator classes who return promises need those promises to have been created using the same
ExecController
that the handler is run with. This is a bit of a pain when running withUnitTest.handle
.FWIW for my purposes it was enough to write a utility method to grab it from the stored threadlocal:
The text was updated successfully, but these errors were encountered: