File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Tests/AlgoliaSearchClientTests/Integration Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ class MultipleClusterIntegrationTests: OnlineTestCase {
5656
5757 let date : Date = . init( )
5858
59+ override var allowFailure : Bool { return true }
60+
5961 override var retryableTests : [ ( ) throws -> Void ] {
6062 [ multiCluster]
6163 }
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ class OnlineTestCase: XCTestCase {
1717 let retryCount : Int = 3
1818
1919 var retryableTests : [ ( ) throws -> Void ] { return [ ] }
20+
21+ var allowFailure : Bool { return false }
2022
2123 /// Abstract base class for online test cases.
2224 ///
@@ -54,7 +56,10 @@ class OnlineTestCase: XCTestCase {
5456 try test ( )
5557 break
5658 } catch let error where attemptCount == retryCount {
59+ try XCTSkipIf ( allowFailure)
5760 throw Error . retryFailed ( attemptCount: attemptCount, error: error)
61+ } catch _ {
62+ continue
5863 }
5964 }
6065 }
You can’t perform that action at this time.
0 commit comments