-
Couldn't load subscription status.
- Fork 599
Open
Description
New Issue Checklist
- I have tried with the latest version of OHHTTPStubs
- I have read the README
- I have read the Using the right Swift Version of
OHHTTPStubsfor your project section - I have searched in the existing issues
- I have read the OHHTTPStubs wiki to see if there wasn't a detailed page talking about my issue
Environment
- version of OHHTTPStubs: 6.1.0
- integration method you are using:
- Cocoapods
- Carthage
- submodule
- other
- version of the tool you use: 1.5.3
Issue Description
Stubs are never considered for watchOS, same code runs fine in iOS.
Steps to reproduce
- Create an iOS + watchOS application
- Add the following code in both apps, this should return empty data for all requests:
stub(condition: isScheme("http") || isScheme("https")) { _ in
return OHHTTPStubsResponse(data: Data(), statusCode: 200, headers: nil)
}
- Add code to download any file and print contents
Expectation: Output should be empty in both apps (as the stubs are returning an empty data object)
Results iOS: Empty output is printed
Results watchOS: Actual file contents are printed, download was not stubbed
Can also be veryfied using breakpoints, for watchOS the return statement is never being called.
Metadata
Metadata
Assignees
Labels
No labels