From 6274c39e522550f9032cfffdd7ae5e57fc425540 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Tue, 6 Jun 2023 14:42:50 -0700 Subject: [PATCH] Replaced with delegate --- .../StoreKitObserverModeIntegrationTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/BackendIntegrationTests/StoreKitObserverModeIntegrationTests.swift b/Tests/BackendIntegrationTests/StoreKitObserverModeIntegrationTests.swift index c489efa0ea..089fa53d33 100644 --- a/Tests/BackendIntegrationTests/StoreKitObserverModeIntegrationTests.swift +++ b/Tests/BackendIntegrationTests/StoreKitObserverModeIntegrationTests.swift @@ -47,8 +47,8 @@ class StoreKit2ObserverModeIntegrationTests: StoreKit1ObserverModeIntegrationTes try await asyncWait( until: { - let entitlement = try? await Purchases.shared - .customerInfo(fetchPolicy: .fetchCurrent) + let entitlement = await self.purchasesDelegate + .customerInfo? .entitlements[Self.entitlementIdentifier] return entitlement?.isActive == true