Skip to content

Commit 25f26c5

Browse files
committed
increase timeouts to make CI happy
1 parent c0c3261 commit 25f26c5

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

Tests/APIRequestTestCase.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class APIRequestTestCase: XCTestCase {
2929
expectation.fulfill()
3030
}
3131
}
32-
waitForExpectationsWithTimeout(5, handler: nil)
32+
waitForExpectationsWithTimeout(10, handler: nil)
3333
}
3434

3535
func testSuccessCallBackIsCalledOnMainThread() {
@@ -42,7 +42,7 @@ class APIRequestTestCase: XCTestCase {
4242
}) { _ in
4343
XCTFail()
4444
}
45-
waitForExpectationsWithTimeout(5, handler: nil)
45+
waitForExpectationsWithTimeout(10, handler: nil)
4646
}
4747

4848
func testFailureCallbackIsCalledOnMainThread() {
@@ -55,7 +55,7 @@ class APIRequestTestCase: XCTestCase {
5555
expectation.fulfill()
5656
}
5757
}
58-
waitForExpectationsWithTimeout(5, handler: nil)
58+
waitForExpectationsWithTimeout(10, handler: nil)
5959
}
6060

6161
func testParsingFailureCallbackIsCalledOnMainThread() {
@@ -68,7 +68,7 @@ class APIRequestTestCase: XCTestCase {
6868
expectation.fulfill()
6969
}
7070
}
71-
waitForExpectationsWithTimeout(5, handler: nil)
71+
waitForExpectationsWithTimeout(10, handler: nil)
7272
}
7373

7474
func testSuccessBlockCanBeCalledOnBackgroundThread() {
@@ -82,7 +82,7 @@ class APIRequestTestCase: XCTestCase {
8282
}) { _ in
8383
XCTFail()
8484
}
85-
waitForExpectationsWithTimeout(5, handler: nil)
85+
waitForExpectationsWithTimeout(10, handler: nil)
8686
}
8787

8888
func testFailureCallbacksCanBeCalledOnBackgroundThread() {
@@ -96,7 +96,7 @@ class APIRequestTestCase: XCTestCase {
9696
expectation.fulfill()
9797
}
9898
}
99-
waitForExpectationsWithTimeout(5, handler: nil)
99+
waitForExpectationsWithTimeout(10, handler: nil)
100100
}
101101

102102
func testEmptyResponseStillCallsSuccessBlock() {
@@ -109,7 +109,7 @@ class APIRequestTestCase: XCTestCase {
109109
XCTFail()
110110
}
111111
)
112-
waitForExpectationsWithTimeout(2, handler: nil)
112+
waitForExpectationsWithTimeout(10, handler: nil)
113113
}
114114

115115
}

Tests/JSONDecodableTestCase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ class JSONDecodableTestCase: XCTestCase {
9292
}
9393
})
9494

95-
waitForExpectationsWithTimeout(3, handler: nil)
95+
waitForExpectationsWithTimeout(10, handler: nil)
9696
}
9797
}

Tests/MultipartAPIRequestTestCase.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class MultipartAPIRequestTestCase: XCTestCase {
4646
// print(progress)
4747
}, cancellableCallback: { token in })
4848

49-
waitForExpectationsWithTimeout(5, handler: nil)
49+
waitForExpectationsWithTimeout(10, handler: nil)
5050
}
5151

5252
func testMultipartUploadIsAbleToUploadFile() {
@@ -71,6 +71,6 @@ class MultipartAPIRequestTestCase: XCTestCase {
7171
// print(progress)
7272
}, cancellableCallback: { token in })
7373

74-
waitForExpectationsWithTimeout(5, handler: nil)
74+
waitForExpectationsWithTimeout(10, handler: nil)
7575
}
7676
}

Tests/RxSwiftExtensionTestCase.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class RxSwiftExtensionTestCase: XCTestCase {
2525
_ = request.rxResult().subscribeNext { _ in
2626
expectation.fulfill()
2727
}
28-
waitForExpectationsWithTimeout(5, handler: nil)
28+
waitForExpectationsWithTimeout(10, handler: nil)
2929
}
3030

3131
func testRxResultIsClosedAfterSuccessfulResponse() {
@@ -34,7 +34,7 @@ class RxSwiftExtensionTestCase: XCTestCase {
3434
_ = request.rxResult().subscribeCompleted { _ in
3535
expectation.fulfill()
3636
}
37-
waitForExpectationsWithTimeout(5, handler: nil)
37+
waitForExpectationsWithTimeout(10, handler: nil)
3838
}
3939

4040
func testRxResultCanBeFailed() {
@@ -43,7 +43,7 @@ class RxSwiftExtensionTestCase: XCTestCase {
4343
_ = request.rxResult().subscribeError { _ in
4444
expectation.fulfill()
4545
}
46-
waitForExpectationsWithTimeout(5, handler: nil)
46+
waitForExpectationsWithTimeout(10, handler: nil)
4747
}
4848

4949
func testMultipartRxCanBeSuccessful() {
@@ -62,7 +62,7 @@ class RxSwiftExtensionTestCase: XCTestCase {
6262
}
6363
}
6464
}
65-
waitForExpectationsWithTimeout(5, handler: nil)
65+
waitForExpectationsWithTimeout(10, handler: nil)
6666
}
6767

6868
func testMultipartRxSendsProgress() {
@@ -79,6 +79,6 @@ class RxSwiftExtensionTestCase: XCTestCase {
7979
expectation.fulfill()
8080
}
8181
}
82-
waitForExpectationsWithTimeout(5, handler: nil)
82+
waitForExpectationsWithTimeout(10, handler: nil)
8383
}
8484
}

0 commit comments

Comments
 (0)