File tree Expand file tree Collapse file tree
Sources/Graphiti/Field/Field
Tests/GraphitiTests/FederationTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,6 +151,4 @@ public extension Field where Arguments == NoArguments {
151151}
152152
153153// We must conform KeyPath to unchecked sendable to allow keypath-based resolvers.
154- // Despite the warning, we cannot add `@retroactive` and keep Swift 5 support.
155- // Remove when support transitions to Swift 6.
156- extension KeyPath : @unchecked Sendable { }
154+ extension KeyPath : @retroactive @unchecked Sendable { }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ struct FederationTests {
1212 . use ( partials: [ ProductSchema ( ) ] )
1313 . setFederatedSDL ( to: sdl)
1414 . build ( )
15- api = try ProductAPI ( resolver: ProductResolver ( sdl: sdl) , schema: schema)
15+ api = ProductAPI ( resolver: ProductResolver ( sdl: sdl) , schema: schema)
1616 }
1717
1818 // Test Queries from https://github.com/apollographql/apollo-federation-subgraph-compatibility/blob/main/COMPATIBILITY.md
@@ -238,7 +238,7 @@ extension FederationTests {
238238 else {
239239 throw FederationTestsError . couldNotLoadFile
240240 }
241- return try String ( contentsOf: url)
241+ return try String ( contentsOf: url, encoding : . utf8 )
242242 }
243243
244244 static func query( _ name: String ) throws -> String {
@@ -251,7 +251,7 @@ extension FederationTests {
251251 else {
252252 throw FederationTestsError . couldNotLoadFile
253253 }
254- return try String ( contentsOf: url)
254+ return try String ( contentsOf: url, encoding : . utf8 )
255255 }
256256
257257 func execute( request: String , variables: [ String : Map ] = [ : ] ) async throws -> GraphQLResult {
You can’t perform that action at this time.
0 commit comments