Skip to content

Commit

Permalink
[Infra] Address Sendable warnings in RC's URLSessionPartialMock.swift (
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Sep 12, 2024
1 parent 16dd4ee commit bf29b4b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Foundation
#endif

// Create a partial mock by subclassing the URLSessionDataTask.
class URLSessionDataTaskMock: URLSessionDataTask {
class URLSessionDataTaskMock: URLSessionDataTask, @unchecked Sendable {
private let closure: () -> Void

init(closure: @escaping () -> Void) {
Expand All @@ -31,7 +31,7 @@ class URLSessionDataTaskMock: URLSessionDataTask {
}
}

class URLSessionMock: URLSession {
class URLSessionMock: URLSession, @unchecked Sendable {
typealias CompletionHandler = (Data?, URLResponse?, Error?) -> Void

private let fakeConsole: FakeConsole
Expand Down

0 comments on commit bf29b4b

Please sign in to comment.