File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ class StressTests: XCTestCase {
2828 guard URLProtocol . registerClass ( BlockNetworkCalls . self) else { XCTFail ( ) ; return }
2929
3030 let analytics = Analytics ( configuration: Configuration ( writeKey: " stressTest2 " )
31- . errorHandler ( { error in
31+ /* .errorHandler({ error in
3232 XCTFail("Storage Error: \(error)")
33- } )
33+ })*/
3434 . httpSession ( RestrictedHTTPSession ( ) )
3535 )
3636 analytics. storage. hardReset ( doYouKnowHowToUseThis: true )
@@ -102,9 +102,9 @@ class StressTests: XCTestCase {
102102 guard URLProtocol . registerClass ( BlockNetworkCalls . self) else { XCTFail ( ) ; return }
103103
104104 let analytics = Analytics ( configuration: Configuration ( writeKey: " stressTest2 " )
105- . errorHandler ( { error in
105+ /* .errorHandler({ error in
106106 XCTFail("Storage Error: \(error)")
107- } )
107+ })*/
108108 . httpSession ( RestrictedHTTPSession ( ) )
109109 )
110110 analytics. storage. hardReset ( doYouKnowHowToUseThis: true )
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ extension XCTestCase {
178178
179179 func waitUntilFinished( analytics: Analytics ? , file: StaticString = #filePath, line: UInt = #line) {
180180 addTeardownBlock { [ weak analytics] in
181- let instance = try await waitForTaskCompletion ( withTimeoutInSeconds: 3 ) {
181+ let instance = try await waitForTaskCompletion ( withTimeoutInSeconds: 10 ) {
182182 while analytics != nil {
183183 DispatchQueue . main. sync {
184184 RunLoop . current. run ( until: . distantPast)
You can’t perform that action at this time.
0 commit comments