diff --git a/Tests/DownloadTests.swift b/Tests/DownloadTests.swift index 1e2d082c4fc1684ee7301a87e651eba9fca7c202..9db3dba4b1efb3a78009d0661e51d8585f91ed6b 100644 --- a/Tests/DownloadTests.swift +++ b/Tests/DownloadTests.swift @@ -61,7 +61,7 @@ class AlamofireDownloadResponseTestCase: XCTestCase { // XCTAssertGreaterThan(data.length, 0, "data length should be non-zero") } - waitForExpectationsWithTimeout(10){ error in + waitForExpectationsWithTimeout(10) { (error) in XCTAssertNil(error, "\(error)") } } diff --git a/Tests/RequestTests.swift b/Tests/RequestTests.swift index c10d6e2db83ced4c604a37445ebf0d7a6be8db31..0e1a9971ca064bd3cd9dec6a5fee8beb1eae67fe 100644 --- a/Tests/RequestTests.swift +++ b/Tests/RequestTests.swift @@ -62,7 +62,7 @@ class AlamofireRequestResponseTestCase: XCTestCase { XCTAssertNil(error, "error should be nil") } - waitForExpectationsWithTimeout(10){ error in + waitForExpectationsWithTimeout(10) { (error) in XCTAssertNil(error, "\(error)") } } diff --git a/Tests/ResponseTests.swift b/Tests/ResponseTests.swift index f21954cbb0480543bc578985bed16791fc3c3922..37295969d53f11de55030f2f8f7dcc5c5d130394 100644 --- a/Tests/ResponseTests.swift +++ b/Tests/ResponseTests.swift @@ -40,7 +40,7 @@ class AlamofireJSONResponseTestCase: XCTestCase { XCTAssertEqual(JSON!["args"] as NSObject, ["foo": "bar"], "args should be equal") } - waitForExpectationsWithTimeout(10){ error in + waitForExpectationsWithTimeout(10) { (error) in XCTAssertNil(error, "\(error)") } }