@@ -180,7 +180,7 @@ class IterableAPITests: XCTestCase {
180
180
XCTFail ( " Failed to set email " )
181
181
expectation. fulfill ( )
182
182
} )
183
-
183
+ internalAPI . register ( token : " zeeToken " . data ( using : . utf8 ) ! )
184
184
wait ( for: [ expectation] , timeout: testExpectationTimeout)
185
185
}
186
186
@@ -198,7 +198,7 @@ class IterableAPITests: XCTestCase {
198
198
XCTAssertNotNil ( error)
199
199
expectation. fulfill ( )
200
200
} )
201
-
201
+ internalAPI . register ( token : " zeeToken " . data ( using : . utf8 ) ! )
202
202
wait ( for: [ expectation] , timeout: testExpectationTimeout)
203
203
}
204
204
@@ -210,13 +210,13 @@ class IterableAPITests: XCTestCase {
210
210
let internalAPI = InternalIterableAPI . initializeForTesting ( apiKey: IterableAPITests . apiKey, config: config, networkSession: networkSession)
211
211
212
212
internalAPI. setUserId ( " user123 " , successHandler: { success in
213
- XCTAssertNil ( success)
213
+ XCTAssertNotNil ( success)
214
214
expectation. fulfill ( )
215
215
} , failureHandler: { _, _ in
216
216
XCTFail ( " Failed to set user ID " )
217
217
expectation. fulfill ( )
218
218
} )
219
-
219
+ internalAPI . register ( token : " zeeToken " . data ( using : . utf8 ) ! )
220
220
wait ( for: [ expectation] , timeout: testExpectationTimeout)
221
221
}
222
222
@@ -234,7 +234,7 @@ class IterableAPITests: XCTestCase {
234
234
XCTAssertNotNil ( error)
235
235
expectation. fulfill ( )
236
236
} )
237
-
237
+ internalAPI . register ( token : " zeeToken " . data ( using : . utf8 ) ! )
238
238
wait ( for: [ expectation] , timeout: testExpectationTimeout)
239
239
}
240
240
0 commit comments