Skip to content

Commit 7e43e6a

Browse files
author
Mike Pollard
committed
Fix deprecation warnings in tests
1 parent efed2f6 commit 7e43e6a

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

Tests/GraphQLTests/HelloWorldTests/HelloWorldTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class HelloWorldTests : XCTestCase {
1616
)
1717

1818
func testHello() throws {
19-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
19+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
2020
defer {
2121
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
2222
}
@@ -33,7 +33,7 @@ class HelloWorldTests : XCTestCase {
3333
}
3434

3535
func testBoyhowdy() throws {
36-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
36+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
3737
defer {
3838
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
3939
}

Tests/GraphQLTests/StarWarsTests/StarWarsIntrospectionTests.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import NIO
55

66
class StarWarsIntrospectionTests : XCTestCase {
77
func testIntrospectionTypeQuery() throws {
8-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
8+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
99
defer {
1010
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
1111
}
@@ -81,7 +81,7 @@ class StarWarsIntrospectionTests : XCTestCase {
8181
}
8282

8383
func testIntrospectionQueryTypeQuery() throws {
84-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
84+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
8585
defer {
8686
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
8787
}
@@ -109,7 +109,7 @@ class StarWarsIntrospectionTests : XCTestCase {
109109
}
110110

111111
func testIntrospectionDroidTypeQuery() throws {
112-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
112+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
113113
defer {
114114
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
115115
}
@@ -133,7 +133,7 @@ class StarWarsIntrospectionTests : XCTestCase {
133133
}
134134

135135
func testIntrospectionDroidKindQuery() throws {
136-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
136+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
137137
defer {
138138
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
139139
}
@@ -159,7 +159,7 @@ class StarWarsIntrospectionTests : XCTestCase {
159159
}
160160

161161
func testIntrospectionCharacterKindQuery() throws {
162-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
162+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
163163
defer {
164164
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
165165
}
@@ -185,7 +185,7 @@ class StarWarsIntrospectionTests : XCTestCase {
185185
}
186186

187187
func testIntrospectionDroidFieldsQuery() throws {
188-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
188+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
189189
defer {
190190
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
191191
}
@@ -260,7 +260,7 @@ class StarWarsIntrospectionTests : XCTestCase {
260260
}
261261

262262
func testIntrospectionDroidNestedFieldsQuery() throws {
263-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
263+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
264264
defer {
265265
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
266266
}
@@ -354,7 +354,7 @@ class StarWarsIntrospectionTests : XCTestCase {
354354
}
355355

356356
func testIntrospectionFieldArgsQuery() throws {
357-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
357+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
358358
defer {
359359
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
360360
}
@@ -449,7 +449,7 @@ class StarWarsIntrospectionTests : XCTestCase {
449449
}
450450

451451
func testIntrospectionDroidDescriptionQuery() throws {
452-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
452+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
453453
defer {
454454
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
455455
}

Tests/GraphQLTests/StarWarsTests/StarWarsQueryTests.swift

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import NIO
55

66
class StarWarsQueryTests : XCTestCase {
77
func testHeroNameQuery() throws {
8-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
8+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
99
defer {
1010
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
1111
}
@@ -29,7 +29,7 @@ class StarWarsQueryTests : XCTestCase {
2929
}
3030

3131
func testHeroNameAndFriendsQuery() throws {
32-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
32+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
3333
defer {
3434
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
3535
}
@@ -63,7 +63,7 @@ class StarWarsQueryTests : XCTestCase {
6363
}
6464

6565
func testNestedQuery() throws {
66-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
66+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
6767
defer {
6868
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
6969
}
@@ -125,7 +125,7 @@ class StarWarsQueryTests : XCTestCase {
125125
}
126126

127127
func testFetchLukeQuery() throws {
128-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
128+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
129129
defer {
130130
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
131131
}
@@ -149,7 +149,7 @@ class StarWarsQueryTests : XCTestCase {
149149
}
150150

151151
func testOptionalVariable() throws{
152-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
152+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
153153
defer {
154154
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
155155
}
@@ -196,7 +196,7 @@ class StarWarsQueryTests : XCTestCase {
196196
}
197197

198198
func testFetchSomeIDQuery() throws {
199-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
199+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
200200
defer {
201201
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
202202
}
@@ -257,7 +257,7 @@ class StarWarsQueryTests : XCTestCase {
257257
}
258258

259259
func testFetchLukeAliasedQuery() throws {
260-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
260+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
261261
defer {
262262
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
263263
}
@@ -281,7 +281,7 @@ class StarWarsQueryTests : XCTestCase {
281281
}
282282

283283
func testFetchLukeAndLeiaAliasedQuery() throws {
284-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
284+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
285285
defer {
286286
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
287287
}
@@ -311,7 +311,7 @@ class StarWarsQueryTests : XCTestCase {
311311
}
312312

313313
func testDuplicateFieldsQuery() throws {
314-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
314+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
315315
defer {
316316
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
317317
}
@@ -345,7 +345,7 @@ class StarWarsQueryTests : XCTestCase {
345345
}
346346

347347
func testUseFragmentQuery() throws {
348-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
348+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
349349
defer {
350350
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
351351
}
@@ -381,7 +381,7 @@ class StarWarsQueryTests : XCTestCase {
381381
}
382382

383383
func testCheckTypeOfR2Query() throws {
384-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
384+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
385385
defer {
386386
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
387387
}
@@ -407,7 +407,7 @@ class StarWarsQueryTests : XCTestCase {
407407
}
408408

409409
func testCheckTypeOfLukeQuery() throws {
410-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
410+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
411411
defer {
412412
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
413413
}
@@ -433,7 +433,7 @@ class StarWarsQueryTests : XCTestCase {
433433
}
434434

435435
func testSecretBackstoryQuery() throws {
436-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
436+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
437437
defer {
438438
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
439439
}
@@ -466,7 +466,7 @@ class StarWarsQueryTests : XCTestCase {
466466
}
467467

468468
func testSecretBackstoryListQuery() throws {
469-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
469+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
470470
defer {
471471
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
472472
}
@@ -525,7 +525,7 @@ class StarWarsQueryTests : XCTestCase {
525525
}
526526

527527
func testSecretBackstoryAliasQuery() throws {
528-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
528+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
529529
defer {
530530
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
531531
}
@@ -558,7 +558,7 @@ class StarWarsQueryTests : XCTestCase {
558558
}
559559

560560
func testNonNullableFieldsQuery() throws {
561-
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
561+
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
562562
defer {
563563
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
564564
}

0 commit comments

Comments
 (0)