Skip to content

Commit

Permalink
Integration Tests: enabled receipt fetch retry mechanism (#279)
Browse files Browse the repository at this point in the history
See RevenueCat/purchases-ios#1945.
Hopefully this will fail the tests in
#278.
  • Loading branch information
NachoSoto authored Dec 19, 2022
1 parent ff5e786 commit 7fd4df2
Showing 1 changed file with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,24 @@ private extension BaseIntegrationTests {
}

func configurePurchases() {
_ = Purchases.configure(apiKey: Constants.apiKey,
appUserID: nil,
observerMode: false,
userDefaultsSuiteName: Constants.userDefaultsSuiteName,
platformFlavor: nil,
platformFlavorVersion: nil,
usesStoreKit2IfAvailable: Self.storeKit2Setting == .enabledForCompatibleDevices,
dangerousSettings: nil)
_ = Purchases.configure(
apiKey: Constants.apiKey,
appUserID: nil,
observerMode: false,
userDefaultsSuiteName: Constants.userDefaultsSuiteName,
platformFlavor: nil,
platformFlavorVersion: nil,
usesStoreKit2IfAvailable: Self.storeKit2Setting == .enabledForCompatibleDevices,
dangerousSettings: self.dangerousSettings
)
Purchases.logLevel = .debug
}

private var dangerousSettings: DangerousSettings {
return .init(autoSyncPurchases: true,
internalSettings: .init(enableReceiptFetchRetry: true))
}

}

private final class MockSandboxEnvironmentDetector: SandboxEnvironmentDetector {
Expand Down

0 comments on commit 7fd4df2

Please sign in to comment.