We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e71f9 commit a474b10Copy full SHA for a474b10
Tests/Helpers/Mocks.swift
@@ -327,9 +327,8 @@ class MockSession: URLSession {
327
}
328
329
override func resume() {
330
- DispatchQueue.global(qos: .default).async {
331
- self.completionHandler!(self.mockResponse.data, self.mockResponse.urlResponse, self.mockResponse.error)
332
- }
+ // Call synchronously to avoid race conditions with Swift 6.0+ stricter memory management
+ self.completionHandler!(self.mockResponse.data, self.mockResponse.urlResponse, self.mockResponse.error)
333
334
335
0 commit comments