@@ -52,7 +52,7 @@ final class Analytics_Tests: XCTestCase {
52
52
analytics. identify ( userId: " brandon " , traits: traits)
53
53
analytics. remove ( plugin: ziggy)
54
54
55
- wait ( for: [ expectation] , timeout: 1.0 )
55
+ wait ( for: [ expectation] , timeout: . infinity )
56
56
}
57
57
58
58
func testDestinationInitialUpdateOnlyOnce( ) {
@@ -90,7 +90,7 @@ final class Analytics_Tests: XCTestCase {
90
90
XCTAssertNotNil ( dest)
91
91
XCTAssertTrue ( dest is MyDestination )
92
92
93
- wait ( for: [ expectation] , timeout: 1.0 )
93
+ wait ( for: [ expectation] , timeout: . infinity )
94
94
95
95
XCTAssertEqual ( myDestination. receivedInitialUpdate, 1 )
96
96
XCTAssertEqual ( ziggy1. receivedInitialUpdate, 1 )
@@ -130,7 +130,7 @@ final class Analytics_Tests: XCTestCase {
130
130
XCTAssertNotNil ( dest)
131
131
XCTAssertTrue ( dest is MyDestination )
132
132
133
- wait ( for: [ expectation] , timeout: 1.0 )
133
+ wait ( for: [ expectation] , timeout: . infinity )
134
134
}
135
135
136
136
// Linux doesn't support XCTExpectFailure
@@ -771,11 +771,7 @@ final class Analytics_Tests: XCTestCase {
771
771
expectation. fulfill ( )
772
772
}
773
773
774
- #if os(iOS)
775
- wait ( for: [ expectation] )
776
- #else
777
- wait ( for: [ expectation] , timeout: 5 )
778
- #endif
774
+ wait ( for: [ expectation] , timeout: . infinity)
779
775
780
776
XCTAssertNil ( analytics. pendingUploads)
781
777
}
@@ -800,7 +796,7 @@ final class Analytics_Tests: XCTestCase {
800
796
expectation. fulfill ( )
801
797
}
802
798
803
- wait ( for: [ expectation] , timeout: 10 )
799
+ wait ( for: [ expectation] , timeout: . infinity )
804
800
805
801
XCTAssertNil ( analytics. pendingUploads)
806
802
@@ -915,7 +911,7 @@ final class Analytics_Tests: XCTestCase {
915
911
expectation. fulfill ( )
916
912
}
917
913
918
- wait ( for: [ expectation] , timeout: 1.0 )
914
+ wait ( for: [ expectation] , timeout: . infinity )
919
915
920
916
let newStoredEvents : [ URL ] ? = analytics. storage. read ( . events)
921
917
0 commit comments