✅ How to write unit test for this?
I have controller with this method:
unit test:
I want to check that Response contains sseEvents but always get an exception:
System.Threading.Tasks.TaskCanceledException : A task was canceled.
how to fix it?
1 Reply
I understand why this happens but I don't understand how to avoid this exception and just check content
done