Skip to content

Commit

Permalink
increase timeouts to make CI happy
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin committed Apr 22, 2016
1 parent c0c3261 commit 25f26c5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions Tests/APIRequestTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class APIRequestTestCase: XCTestCase {
expectation.fulfill()
}
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testSuccessCallBackIsCalledOnMainThread() {
Expand All @@ -42,7 +42,7 @@ class APIRequestTestCase: XCTestCase {
}) { _ in
XCTFail()
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testFailureCallbackIsCalledOnMainThread() {
Expand All @@ -55,7 +55,7 @@ class APIRequestTestCase: XCTestCase {
expectation.fulfill()
}
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testParsingFailureCallbackIsCalledOnMainThread() {
Expand All @@ -68,7 +68,7 @@ class APIRequestTestCase: XCTestCase {
expectation.fulfill()
}
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testSuccessBlockCanBeCalledOnBackgroundThread() {
Expand All @@ -82,7 +82,7 @@ class APIRequestTestCase: XCTestCase {
}) { _ in
XCTFail()
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testFailureCallbacksCanBeCalledOnBackgroundThread() {
Expand All @@ -96,7 +96,7 @@ class APIRequestTestCase: XCTestCase {
expectation.fulfill()
}
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testEmptyResponseStillCallsSuccessBlock() {
Expand All @@ -109,7 +109,7 @@ class APIRequestTestCase: XCTestCase {
XCTFail()
}
)
waitForExpectationsWithTimeout(2, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

}
2 changes: 1 addition & 1 deletion Tests/JSONDecodableTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ class JSONDecodableTestCase: XCTestCase {
}
})

waitForExpectationsWithTimeout(3, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}
}
4 changes: 2 additions & 2 deletions Tests/MultipartAPIRequestTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MultipartAPIRequestTestCase: XCTestCase {
// print(progress)
}, cancellableCallback: { token in })

waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testMultipartUploadIsAbleToUploadFile() {
Expand All @@ -71,6 +71,6 @@ class MultipartAPIRequestTestCase: XCTestCase {
// print(progress)
}, cancellableCallback: { token in })

waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}
}
10 changes: 5 additions & 5 deletions Tests/RxSwiftExtensionTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class RxSwiftExtensionTestCase: XCTestCase {
_ = request.rxResult().subscribeNext { _ in
expectation.fulfill()
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testRxResultIsClosedAfterSuccessfulResponse() {
Expand All @@ -34,7 +34,7 @@ class RxSwiftExtensionTestCase: XCTestCase {
_ = request.rxResult().subscribeCompleted { _ in
expectation.fulfill()
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testRxResultCanBeFailed() {
Expand All @@ -43,7 +43,7 @@ class RxSwiftExtensionTestCase: XCTestCase {
_ = request.rxResult().subscribeError { _ in
expectation.fulfill()
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testMultipartRxCanBeSuccessful() {
Expand All @@ -62,7 +62,7 @@ class RxSwiftExtensionTestCase: XCTestCase {
}
}
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}

func testMultipartRxSendsProgress() {
Expand All @@ -79,6 +79,6 @@ class RxSwiftExtensionTestCase: XCTestCase {
expectation.fulfill()
}
}
waitForExpectationsWithTimeout(5, handler: nil)
waitForExpectationsWithTimeout(10, handler: nil)
}
}

0 comments on commit 25f26c5

Please sign in to comment.