Skip to content

Crash when accessing URLSessionDataTask #74

@Nonouf

Description

@Nonouf

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions