Skip to content

Commit

Permalink
Added another test
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Aug 14, 2023
1 parent 2c2db58 commit 4de8e65
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tests/BackendIntegrationTests/OtherIntegrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ class OtherIntegrationTests: BaseBackendIntegrationTests {
)
}

func testGetCustomerInfoCaching() async throws {
_ = try await self.purchases.customerInfo()

self.logger.clearMessages()

_ = try await self.purchases.customerInfo()

self.logger.verifyMessageWasLogged(Strings.customerInfo.vending_cache, level: .debug)
self.logger.verifyMessageWasNotLogged("API request started")
}

func testGetOfferingsMultipleTimesInParallel() async throws {
let requestCount = 3

Expand Down

0 comments on commit 4de8e65

Please sign in to comment.