Skip to content

Commit

Permalink
Disable response verification during tests by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tonidero committed Jan 15, 2025
1 parent 4b0a080 commit 5e61d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Tests/UnitTests/Mocks/MockSystemInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class MockSystemInfo: SystemInfo {
finishTransactions: Bool,
customEntitlementsComputation: Bool = false,
storeKitVersion: StoreKitVersion = .default,
responseVerificationMode: Signing.ResponseVerificationMode = .disabled,
clock: ClockType = TestClock()) {
let dangerousSettings = DangerousSettings(
autoSyncPurchases: true,
Expand All @@ -30,6 +31,7 @@ class MockSystemInfo: SystemInfo {
self.init(platformInfo: platformInfo,
finishTransactions: finishTransactions,
storeKitVersion: storeKitVersion,
responseVerificationMode: responseVerificationMode,
dangerousSettings: dangerousSettings,
clock: clock)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class BackendSubscriberAttributesTests: TestCase {
platformInfo: .init(flavor: "Unity", version: "2.3.3"),
finishTransactions: true,
storefrontProvider: MockStorefrontProvider(),
storeKitVersion: .versionForTests
storeKitVersion: .versionForTests,
responseVerificationMode: .disabled
)

override func setUpWithError() throws {
Expand Down

0 comments on commit 5e61d76

Please sign in to comment.