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 {
28
28
guard URLProtocol . registerClass ( BlockNetworkCalls . self) else { XCTFail ( ) ; return }
29
29
30
30
let analytics = Analytics ( configuration: Configuration ( writeKey: " stressTest2 " )
31
- . errorHandler ( { error in
31
+ /* .errorHandler({ error in
32
32
XCTFail("Storage Error: \(error)")
33
- } )
33
+ })*/
34
34
. httpSession ( RestrictedHTTPSession ( ) )
35
35
)
36
36
analytics. storage. hardReset ( doYouKnowHowToUseThis: true )
@@ -102,9 +102,9 @@ class StressTests: XCTestCase {
102
102
guard URLProtocol . registerClass ( BlockNetworkCalls . self) else { XCTFail ( ) ; return }
103
103
104
104
let analytics = Analytics ( configuration: Configuration ( writeKey: " stressTest2 " )
105
- . errorHandler ( { error in
105
+ /* .errorHandler({ error in
106
106
XCTFail("Storage Error: \(error)")
107
- } )
107
+ })*/
108
108
. httpSession ( RestrictedHTTPSession ( ) )
109
109
)
110
110
analytics. storage. hardReset ( doYouKnowHowToUseThis: true )
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ extension XCTestCase {
178
178
179
179
func waitUntilFinished( analytics: Analytics ? , file: StaticString = #filePath, line: UInt = #line) {
180
180
addTeardownBlock { [ weak analytics] in
181
- let instance = try await waitForTaskCompletion ( withTimeoutInSeconds: 3 ) {
181
+ let instance = try await waitForTaskCompletion ( withTimeoutInSeconds: 10 ) {
182
182
while analytics != nil {
183
183
DispatchQueue . main. sync {
184
184
RunLoop . current. run ( until: . distantPast)
You can’t perform that action at this time.
0 commit comments