Skip to content

Commit 01d7e08

Browse files
committed
Fixing tests
1 parent 8a71b18 commit 01d7e08

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/unit-tests/IterableAPITests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class IterableAPITests: XCTestCase {
180180
XCTFail("Failed to set email")
181181
expectation.fulfill()
182182
})
183-
183+
internalAPI.register(token: "zeeToken".data(using: .utf8)!)
184184
wait(for: [expectation], timeout: testExpectationTimeout)
185185
}
186186

@@ -198,7 +198,7 @@ class IterableAPITests: XCTestCase {
198198
XCTAssertNotNil(error)
199199
expectation.fulfill()
200200
})
201-
201+
internalAPI.register(token: "zeeToken".data(using: .utf8)!)
202202
wait(for: [expectation], timeout: testExpectationTimeout)
203203
}
204204

@@ -210,13 +210,13 @@ class IterableAPITests: XCTestCase {
210210
let internalAPI = InternalIterableAPI.initializeForTesting(apiKey: IterableAPITests.apiKey, config: config, networkSession: networkSession)
211211

212212
internalAPI.setUserId("user123", successHandler: { success in
213-
XCTAssertNil(success)
213+
XCTAssertNotNil(success)
214214
expectation.fulfill()
215215
}, failureHandler: { _, _ in
216216
XCTFail("Failed to set user ID")
217217
expectation.fulfill()
218218
})
219-
219+
internalAPI.register(token: "zeeToken".data(using: .utf8)!)
220220
wait(for: [expectation], timeout: testExpectationTimeout)
221221
}
222222

@@ -234,7 +234,7 @@ class IterableAPITests: XCTestCase {
234234
XCTAssertNotNil(error)
235235
expectation.fulfill()
236236
})
237-
237+
internalAPI.register(token: "zeeToken".data(using: .utf8)!)
238238
wait(for: [expectation], timeout: testExpectationTimeout)
239239
}
240240

0 commit comments

Comments
 (0)