File tree 2 files changed +7
-4
lines changed
Tests/swift-sdk-swift-tests
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class IterableAPITests: XCTestCase {
63
63
XCTFail ( )
64
64
}
65
65
66
- wait ( for: [ expectation] , timeout: 5.0 )
66
+ wait ( for: [ expectation] , timeout: testExpectationTimeout )
67
67
}
68
68
69
69
func testTrackEventBadNetwork( ) {
@@ -83,7 +83,7 @@ class IterableAPITests: XCTestCase {
83
83
} ,
84
84
onFailure: { ( reason, data) in expectation. fulfill ( ) } )
85
85
86
- wait ( for: [ expectation] , timeout: 5.0 )
86
+ wait ( for: [ expectation] , timeout: testExpectationTimeout )
87
87
}
88
88
89
89
func testUpdateUser( ) {
@@ -105,7 +105,7 @@ class IterableAPITests: XCTestCase {
105
105
expectation. fulfill ( )
106
106
}
107
107
108
- wait ( for: [ expectation] , timeout: 5.0 )
108
+ wait ( for: [ expectation] , timeout: testExpectationTimeout )
109
109
}
110
110
111
111
func testUpdateEmail( ) {
@@ -132,6 +132,6 @@ class IterableAPITests: XCTestCase {
132
132
XCTFail ( )
133
133
} )
134
134
135
- wait ( for: [ expectation] , timeout: 5.0 )
135
+ wait ( for: [ expectation] , timeout: testExpectationTimeout )
136
136
}
137
137
}
Original file line number Diff line number Diff line change @@ -858,6 +858,9 @@ import Foundation
858
858
859
859
// super init
860
860
super. init ( )
861
+
862
+ // Fix for NSArchiver bug
863
+ NSKeyedUnarchiver . setClass ( IterableAttributionInfo . self, forClassName: " IterableAttributionInfo " )
861
864
862
865
// get email and userId from UserDefaults if present
863
866
retrieveEmailAndUserId ( )
You can’t perform that action at this time.
0 commit comments