Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
okhan-okbay-cko committed May 29, 2024
1 parent 46faba5 commit 89c432e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Checkout/Source/Tokenisation/CheckoutAPIService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ final public class CheckoutAPIService: CheckoutAPIProtocol {
completion(.success(tokenDetails))
case .success():
self.riskSDK.publishData(cardToken: tokenDetails.token) { _ in
self.logManager.queue(event: .riskSDKCompletion)
logManager.queue(event: .riskSDKCompletion)
completion(.success(tokenDetails))
logManager.resetCorrelationID()
}
Expand Down
2 changes: 1 addition & 1 deletion CheckoutTests/Tokenisation/CheckoutAPIServiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ final class CheckoutAPIServiceTests: XCTestCase {

XCTAssertEqual(stubTokenDetailsFactory.createCalledWith, tokenResponse)

XCTAssertEqual(StubLogManager.queueCalledWith.last, .tokenResponse(
XCTAssertEqual(StubLogManager.queueCalledWith.dropLast().last, .tokenResponse(
.init(tokenType: .card, publicKey: "publicKey"),
.init(tokenID: "token", scheme: "visa", httpStatusCode: 200, serverError: nil)
))
Expand Down

0 comments on commit 89c432e

Please sign in to comment.