Skip to content

Commit 9252059

Browse files
committed
fixed tests with removing apikey
1 parent 081becf commit 9252059

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/offline-events-tests/TaskProcessorTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class TaskProcessorTests: XCTestCase {
1919
let networkSession = MockNetworkSession()
2020
let internalAPI = InternalIterableAPI.initializeForTesting(apiKey: apiKey, config: config, networkSession: networkSession)
2121

22-
let requestCreator = RequestCreator(apiKey: apiKey,
23-
auth: auth,
22+
let requestCreator = RequestCreator(auth: auth,
2423
deviceMetadata: internalAPI.deviceMetadata)
2524
guard case let Result.success(trackEventRequest) = requestCreator.createTrackEventRequest(eventName, dataFields: dataFields) else {
2625
XCTFail("Could not create trackEvent request")
@@ -223,8 +222,7 @@ class TaskProcessorTests: XCTestCase {
223222
let dataFields = ["var1": "val1", "var2": "val2"]
224223

225224
let auth = Auth(userId: nil, email: email, authToken: nil)
226-
let requestCreator = RequestCreator(apiKey: apiKey,
227-
auth: auth,
225+
let requestCreator = RequestCreator(auth: auth,
228226
deviceMetadata: deviceMetadata)
229227
guard case let Result.success(trackEventRequest) = requestCreator.createTrackEventRequest(eventName, dataFields: dataFields) else {
230228
XCTFail("Could not create trackEvent request")

0 commit comments

Comments
 (0)