Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canceling mocked tasks has no effect #41

Open
csknns opened this issue Jun 20, 2017 · 0 comments
Open

Canceling mocked tasks has no effect #41

csknns opened this issue Jun 20, 2017 · 0 comments

Comments

@csknns
Copy link
Contributor

csknns commented Jun 20, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant