Skip to content

Switch Test to the Mock SDK #39008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2021
Merged

Switch Test to the Mock SDK #39008

merged 1 commit into from
Aug 23, 2021

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Aug 23, 2021

This test used to rely on the overlays. There's a lot of problems with
that approach

  1. The overlays are not meant to be stable (for the definition of 'stable' required of a test like this)
  2. AnyObject lookup is... absolutely buck wild
  3. And extremely dependent upon platform-specific results.

Hence this test has had a rocky history of being turned on and off for
various configurations. Anchor it to the mock SDK so we have complete
control over its contents across platforms.

Resolves rdar://78797454

I'll have a follow-up that tries to remove the 32-bit gates since the mock SDK doesn't care about the KVO shims.

This test used to rely on the overlays. There's a lot of problems with
that approach

1) The overlays are not meant to be stable
2) AnyObject lookup is... absolutely buck wild
3) And extremely dependent upon platform-specific results.

Hence this test has had a rocky history of being turned on and off for
various configurations. Anchor it to the mock SDK so we have complete
control over its contents across platforms.

Resolves rdar://78797454
@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 23, 2021

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 259cf54 into swiftlang:main Aug 23, 2021
@CodaFi CodaFi deleted the mockito branch August 24, 2021 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants