Closed nurkenn-keda closed 1 year ago
Re-opened issue #75 Can confirm it's still happening on my machine:
Spec: CPU: M2 Xcode: 14.2 Alamofire: 5.6.4 Target: iPhone 14 Pro Simulator (arm64)
Reverting to Mocker 2.2.0 solved the issue I used the tutorial in the Readme.md to integrate Mocker
func test_OK() { let configuration = URLSessionConfiguration.af.default configuration.protocolClasses = [MockingURLProtocol.self] let sessionManager = Alamofire.Session(configuration: configuration) let originalUrl: URL = URL(string: "Some URL")! let mock = Mock(url: originalUrl, contentType: .json, statusCode: 200, data: [.post: <Some Data here>]) mock.register() let expectation = XCTestExpectation(description: "Create JSON") Task { // Call application code here // } wait(for: [expectation], timeout: 5.0) }
@nurkenn-keda I'm closing this issue as a duplicate of #75, let's continue there.
Re-opened issue #75 Can confirm it's still happening on my machine:
Spec: CPU: M2 Xcode: 14.2 Alamofire: 5.6.4 Target: iPhone 14 Pro Simulator (arm64)
Reverting to Mocker 2.2.0 solved the issue I used the tutorial in the Readme.md to integrate Mocker