@@ -330,7 +330,7 @@ class RequestChainTests: XCTestCase {
330
330
331
331
// MARK: Memory tests
332
332
333
- private class Hero : MockSelectionSet , SelectionSet {
333
+ private class Hero : MockSelectionSet {
334
334
typealias Schema = MockSchemaMetadata
335
335
336
336
override class var __selections : [ Selection ] { [
@@ -341,7 +341,7 @@ class RequestChainTests: XCTestCase {
341
341
var name : String { __data [ " name " ] }
342
342
}
343
343
344
- func test__retain_release__givenQuery_shouldNotHaveRetainCycle( ) {
344
+ func test__retain_release__givenQuery_shouldNotHaveRetainCycle( ) throws {
345
345
// given
346
346
let client = MockURLSessionClient (
347
347
response: . mock(
@@ -366,10 +366,10 @@ class RequestChainTests: XCTestCase {
366
366
] )
367
367
weak var weakRequestChain : RequestChain ? = requestChain
368
368
369
- let expectedData = Hero ( data: DataDict ( [
369
+ let expectedData = try Hero ( data: [
370
370
" __typename " : " Hero " ,
371
371
" name " : " R2-D2 "
372
- ] , variables: nil ) )
372
+ ] , variables: nil )
373
373
374
374
let expectation = expectation ( description: " Response received " )
375
375
@@ -402,7 +402,7 @@ class RequestChainTests: XCTestCase {
402
402
XCTAssertNil ( weakRequestChain)
403
403
}
404
404
405
- func test__retain_release__givenSubscription_whenCancelled_shouldNotHaveRetainCycle( ) {
405
+ func test__retain_release__givenSubscription_whenCancelled_shouldNotHaveRetainCycle( ) throws {
406
406
// given
407
407
let client = MockURLSessionClient (
408
408
response: . mock(
@@ -445,10 +445,10 @@ class RequestChainTests: XCTestCase {
445
445
] )
446
446
weak var weakRequestChain : RequestChain ? = requestChain
447
447
448
- let expectedData = Hero ( data: DataDict ( [
448
+ let expectedData = try Hero ( data: [
449
449
" __typename " : " Hero " ,
450
450
" name " : " R2-D2 "
451
- ] , variables: nil ) )
451
+ ] , variables: nil )
452
452
453
453
let expectation = expectation ( description: " Response received " )
454
454
expectation. expectedFulfillmentCount = 2
0 commit comments