@@ -171,7 +171,7 @@ class IterableAPITests: XCTestCase {
171
171
172
172
let config = IterableConfig ( )
173
173
let networkSession = MockNetworkSession ( statusCode: 200 )
174
- let internalAPI = InternalIterableAPI . initializeForTesting ( apiKey: IterableAPITests . apiKey, config: config, networkSession: mockNetworkSession )
174
+ let internalAPI = InternalIterableAPI . initializeForTesting ( apiKey: IterableAPITests . apiKey, config: config, networkSession: networkSession )
175
175
176
176
internalAPI
. setEmail ( " [email protected] " ) { error
in
177
177
XCTAssertNil ( error)
@@ -185,7 +185,7 @@ class IterableAPITests: XCTestCase {
185
185
let expectation = XCTestExpectation ( description: " Set email with callback failure " )
186
186
187
187
let config = IterableConfig ( )
188
- let networkSession = MockNetworkSession ( statusCode: 400 , responseData : nil )
188
+ let networkSession = MockNetworkSession ( statusCode: 400 )
189
189
let internalAPI = InternalIterableAPI . initializeForTesting ( apiKey: IterableAPITests . apiKey, config: config, networkSession: networkSession)
190
190
191
191
internalAPI. setEmail ( " invalid_email " ) { error in
@@ -202,7 +202,7 @@ class IterableAPITests: XCTestCase {
202
202
203
203
let config = IterableConfig ( )
204
204
let networkSession = MockNetworkSession ( statusCode: 200 )
205
- let internalAPI = InternalIterableAPI . initializeForTesting ( apiKey: IterableAPITests . apiKey, config: config, networkSession: mockNetworkSession )
205
+ let internalAPI = InternalIterableAPI . initializeForTesting ( apiKey: IterableAPITests . apiKey, config: config, networkSession: networkSession )
206
206
207
207
internalAPI. setUserId ( " user123 " ) { error in
208
208
XCTAssertNil ( error)
@@ -217,7 +217,7 @@ class IterableAPITests: XCTestCase {
217
217
218
218
let config = IterableConfig ( )
219
219
let networkSession = MockNetworkSession ( statusCode: 400 )
220
- let internalAPI = InternalIterableAPI . initializeForTesting ( apiKey: IterableAPITests . apiKey, config: config, networkSession: mockNetworkSession )
220
+ let internalAPI = InternalIterableAPI . initializeForTesting ( apiKey: IterableAPITests . apiKey, config: config, networkSession: networkSession )
221
221
222
222
internalAPI. setUserId ( " user123 " ) { error in
223
223
XCTAssertNotNil ( error)
0 commit comments