Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayyanchira committed Jun 26, 2023
1 parent 8a71b18 commit 01d7e08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit-tests/IterableAPITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class IterableAPITests: XCTestCase {
XCTFail("Failed to set email")
expectation.fulfill()
})

internalAPI.register(token: "zeeToken".data(using: .utf8)!)
wait(for: [expectation], timeout: testExpectationTimeout)
}

Expand All @@ -198,7 +198,7 @@ class IterableAPITests: XCTestCase {
XCTAssertNotNil(error)
expectation.fulfill()
})

internalAPI.register(token: "zeeToken".data(using: .utf8)!)
wait(for: [expectation], timeout: testExpectationTimeout)
}

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

internalAPI.setUserId("user123", successHandler: { success in
XCTAssertNil(success)
XCTAssertNotNil(success)
expectation.fulfill()
}, failureHandler: { _, _ in
XCTFail("Failed to set user ID")
expectation.fulfill()
})

internalAPI.register(token: "zeeToken".data(using: .utf8)!)
wait(for: [expectation], timeout: testExpectationTimeout)
}

Expand All @@ -234,7 +234,7 @@ class IterableAPITests: XCTestCase {
XCTAssertNotNil(error)
expectation.fulfill()
})

internalAPI.register(token: "zeeToken".data(using: .utf8)!)
wait(for: [expectation], timeout: testExpectationTimeout)
}

Expand Down

0 comments on commit 01d7e08

Please sign in to comment.