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
When doing unit tests of process manager callback modules, the Commanded.ProcessManagers.ProcessManager.identity/0 function returns nil. It's easy enough to set the identity during the test with Process.put(:process_uuid, id), but that builds tests that rely on the internals of Commanded.
It would be useful to have a test helper that can be used with ExUnit.Callbacks.setup/1 like this:
The text was updated successfully, but these errors were encountered:
jvantuyl
changed the title
Commanded.ProcessManagers.ProcessManager.identity/0 function returns nil in unit testsCommanded.ProcessManagers.ProcessManager.identity/0 function returns nil in unit tests
Aug 22, 2023
When doing unit tests of process manager callback modules, the
Commanded.ProcessManagers.ProcessManager.identity/0
function returnsnil
. It's easy enough to set the identity during the test withProcess.put(:process_uuid, id)
, but that builds tests that rely on the internals of Commanded.It would be useful to have a test helper that can be used with
ExUnit.Callbacks.setup/1
like this:And we could use it in tests like this:
The text was updated successfully, but these errors were encountered: