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 calling cancel on the mocked task it has no effect, instead the task will complete with the mocked response.
Instead of scheduling a future block to reply with the mocked response perhaps the MockSessionDataTask should hold a cancelable timer to trigger the future mock response, and in case cancel is called an error with code NSURLErrorCancelled should be generated.
The text was updated successfully, but these errors were encountered:
csknns
added a commit
to csknns/NSURLSession-Mock
that referenced
this issue
Jul 5, 2017
When calling cancel on the mocked task it has no effect, instead the task will complete with the mocked response.
Instead of scheduling a future block to reply with the mocked response perhaps the MockSessionDataTask should hold a cancelable timer to trigger the future mock response, and in case cancel is called an error with code NSURLErrorCancelled should be generated.
The text was updated successfully, but these errors were encountered: