Skip to content

Commit

Permalink
AdServices: Fix failing tests on main in iOS 12 and 13 - IOSAttributi…
Browse files Browse the repository at this point in the history
…onPosterTests
  • Loading branch information
joshdholtz committed Aug 8, 2022
1 parent cb9d1d4 commit 9677fb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/UnitTests/Attribution/AttributionPosterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ class AttributionPosterTests: BaseAttributionPosterTests {
@available(*, deprecated)
class IOSAttributionPosterTests: BaseAttributionPosterTests {

override func setUpWithError() throws {
try super.setUpWithError()
try AvailabilityChecks.iOS14APIAvailableOrSkipTest()
}

func testPostAppleSearchAdsAttributionIfNeededSkipsIfATTFrameworkNotIncludedOnNewOS() throws {
systemInfo.stubbedIsOperatingSystemAtLeastVersion = true
MockAttributionTypeFactory.shouldReturnAdClientProxy = true
Expand Down

0 comments on commit 9677fb3

Please sign in to comment.