WebHare community

Unit testing a managed task


In unit tests, is there a way to wait for the result of a managed task and then test the result of the task?

if so, how about when the managed task schedules a managed task itself? (I have a task that schedules sending a list of sms messages, where sending the sms message is a managed task)


To wait for a specific task, RetrieveManagedTaskResult

https://www.webhare.dev/reference/modules/symbol/lookupmanagedtasks to list all tasks of a specific type, so you can wait for them

1 Like