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
In my project, I use Swifter version 1.5.0 to stub the json responses.
The following code worked find prior to tvOS 16, but broke in tvOS 16
```
let responseFail: ((HttpRequest) -> HttpResponse) = { [weak self] request in
return .fileResponse("fail_json")
}
server.POST[stub.url] = responseFail
// Some code for tests, and now stub the same url with different response
let responseSuccess: ((HttpRequest) -> HttpResponse) = { [weak self] request in
return .fileResponse("success_json")
}
server.POST[stub.url] = responseSuccess
// verify result
In tvOS16 I still get responseFail where I expect responseSuccess.
In tvOS15 and earlier, I get responseSuccess as expected in my last line.
The text was updated successfully, but these errors were encountered:
In my project, I use Swifter version 1.5.0 to stub the json responses.
The following code worked find prior to tvOS 16, but broke in tvOS 16
The text was updated successfully, but these errors were encountered: