Skip to content

Swift 4.2 #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1
4.2
14 changes: 7 additions & 7 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ let package = Package(
],

dependencies: [
.package(url: "https://github.com/wickwirew/Runtime.git", from: "0.6.0"),
.package(url: "https://github.com/wickwirew/Runtime.git", .branch("swift42")),

// ⏱ Promises and reactive-streams in Swift built for high-performance and scalability.
.package(url: "https://github.com/vapor/core.git", from: "3.0.0"),
.package(url: "https://github.com/vapor/core.git", from: "3.4.4"),
],

targets: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class FieldExecutionStrategyTests: XCTestCase {
}

func testSerialFieldExecutionStrategyWithSingleField() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -196,7 +196,7 @@ class FieldExecutionStrategyTests: XCTestCase {
}

func testSerialFieldExecutionStrategyWithSingleFieldError() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -212,7 +212,7 @@ class FieldExecutionStrategyTests: XCTestCase {
}

func testSerialFieldExecutionStrategyWithMultipleFields() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -228,7 +228,7 @@ class FieldExecutionStrategyTests: XCTestCase {
}

func testSerialFieldExecutionStrategyWithMultipleFieldErrors() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -249,7 +249,7 @@ class FieldExecutionStrategyTests: XCTestCase {
}

func testConcurrentDispatchFieldExecutionStrategyWithSingleField() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -265,7 +265,7 @@ class FieldExecutionStrategyTests: XCTestCase {
}

func testConcurrentDispatchFieldExecutionStrategyWithSingleFieldError() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -281,7 +281,7 @@ class FieldExecutionStrategyTests: XCTestCase {
}

func testConcurrentDispatchFieldExecutionStrategyWithMultipleFields() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -297,7 +297,7 @@ class FieldExecutionStrategyTests: XCTestCase {
}

func testConcurrentDispatchFieldExecutionStrategyWithMultipleFieldErrors() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/GraphQLTests/HelloWorldTests/HelloWorldTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class HelloWorldTests : XCTestCase {
)

func testHello() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -33,7 +33,7 @@ class HelloWorldTests : XCTestCase {
}

func testBoyhowdy() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import NIO

class StarWarsIntrospectionTests : XCTestCase {
func testIntrospectionTypeQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -137,7 +137,7 @@ class StarWarsIntrospectionTests : XCTestCase {
}

func testIntrospectionQueryTypeQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -165,7 +165,7 @@ class StarWarsIntrospectionTests : XCTestCase {
}

func testIntrospectionDroidTypeQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -189,7 +189,7 @@ class StarWarsIntrospectionTests : XCTestCase {
}

func testIntrospectionDroidKindQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -215,7 +215,7 @@ class StarWarsIntrospectionTests : XCTestCase {
}

func testIntrospectionCharacterKindQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -241,7 +241,7 @@ class StarWarsIntrospectionTests : XCTestCase {
}

func testIntrospectionDroidFieldsQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -316,7 +316,7 @@ class StarWarsIntrospectionTests : XCTestCase {
}

func testIntrospectionDroidNestedFieldsQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -410,7 +410,7 @@ class StarWarsIntrospectionTests : XCTestCase {
}

func testIntrospectionFieldArgsQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -505,7 +505,7 @@ class StarWarsIntrospectionTests : XCTestCase {
}

func testIntrospectionDroidDescriptionQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down
32 changes: 16 additions & 16 deletions Tests/GraphQLTests/StarWarsTests/StarWarsQueryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import NIO

class StarWarsQueryTests : XCTestCase {
func testHeroNameQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -29,7 +29,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testHeroNameAndFriendsQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -63,7 +63,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testNestedQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -125,7 +125,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testFetchLukeQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -149,7 +149,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testOptionalVariable() throws{
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -196,7 +196,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testFetchSomeIDQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -257,7 +257,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testFetchLukeAliasedQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -281,7 +281,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testFetchLukeAndLeiaAliasedQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -311,7 +311,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testDuplicateFieldsQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -345,7 +345,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testUseFragmentQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -381,7 +381,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testCheckTypeOfR2Query() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -407,7 +407,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testCheckTypeOfLukeQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand All @@ -433,7 +433,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testSecretBackstoryQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -466,7 +466,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testSecretBackstoryListQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -525,7 +525,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testSecretBackstoryAliasQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down Expand Up @@ -558,7 +558,7 @@ class StarWarsQueryTests : XCTestCase {
}

func testNonNullableFieldsQuery() throws {
let eventLoopGroup = MultiThreadedEventLoopGroup(numThreads: 1)
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
defer {
XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully())
}
Expand Down