From 522176b77c1adbb31c9b29d8260ddf90cdf4129d Mon Sep 17 00:00:00 2001 From: Eric Jensen Date: Fri, 31 May 2024 17:48:48 -0400 Subject: [PATCH] Set integration tests to run on macos-13 (apollographql/apollo-ios-dev#378) --- Sources/Apollo/NetworkFetchInterceptor.swift | 3 ++- Sources/Apollo/URLSessionClient.swift | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/Apollo/NetworkFetchInterceptor.swift b/Sources/Apollo/NetworkFetchInterceptor.swift index a477cf6e2b..92ccd79b5d 100644 --- a/Sources/Apollo/NetworkFetchInterceptor.swift +++ b/Sources/Apollo/NetworkFetchInterceptor.swift @@ -36,7 +36,8 @@ public class NetworkFetchInterceptor: ApolloInterceptor, Cancellable { return } - let task = self.client.sendRequest(urlRequest) { [weak self] result in + let taskDescription = "\(Operation.operationType) \(Operation.operationName)" + let task = self.client.sendRequest(urlRequest, taskDescription: taskDescription) { [weak self] result in guard let self = self else { return } diff --git a/Sources/Apollo/URLSessionClient.swift b/Sources/Apollo/URLSessionClient.swift index a77a2f28fa..88226b88ad 100644 --- a/Sources/Apollo/URLSessionClient.swift +++ b/Sources/Apollo/URLSessionClient.swift @@ -152,7 +152,7 @@ open class URLSessionClient: NSObject, URLSessionDelegate, URLSessionTaskDelegat sendRequest( request, taskDescription: nil, - rawTaskCompletionHandler: nil, + rawTaskCompletionHandler: rawTaskCompletionHandler, completion: completion ) }