Skip to content

Commit bf29b4b

Browse files
authored
[Infra] Address Sendable warnings in RC's URLSessionPartialMock.swift (#13632)
1 parent 16dd4ee commit bf29b4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseRemoteConfig/Tests/Swift/FakeUtils/URLSessionPartialMock.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Foundation
1919
#endif
2020

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

2525
init(closure: @escaping () -> Void) {
@@ -31,7 +31,7 @@ class URLSessionDataTaskMock: URLSessionDataTask {
3131
}
3232
}
3333

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

3737
private let fakeConsole: FakeConsole

0 commit comments

Comments
 (0)