I'm currently testing purposely a failure on a request and when accessing the request on the URLSessionDataTask, it results in a unrecognized selector sent.
Step to reproduce:
- Do a request that will expect to fail
- Try to access
task.currentRequest
- Your test suite will crash with
-[Vinyl.URLSessionDataTask currentRequest]: unrecognized selector sent to instance 0x608000058f90
I haven't looked deeply in the problem, but my first thought was that it is really odd as Vinyl.URLSessionDataTask is a subclass of Foundation.URLSessionDataTask and so it shouldn't be a problem to access currentRequest. Any thought on that?
I'm currently testing purposely a failure on a request and when accessing the request on the URLSessionDataTask, it results in a unrecognized selector sent.
Step to reproduce:
task.currentRequest-[Vinyl.URLSessionDataTask currentRequest]: unrecognized selector sent to instance 0x608000058f90I haven't looked deeply in the problem, but my first thought was that it is really odd as
Vinyl.URLSessionDataTaskis a subclass ofFoundation.URLSessionDataTaskand so it shouldn't be a problem to accesscurrentRequest. Any thought on that?