Skip to content
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

Fix Performance Unit Tests requiring Unswizzling #13791

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

samedson
Copy link
Contributor

@samedson samedson commented Oct 3, 2024

There are tests that supposedly require unswizzling, but when I remove the assertion, they all pass. There doesn't seem to be any issues removing all unswizzling from the unit tests.

#no-changelog

@samedson
Copy link
Contributor Author

samedson commented Oct 3, 2024

Screenshot 2024-10-03 at 11 26 10 AM

Just one test failure

@samedson
Copy link
Contributor Author

samedson commented Oct 3, 2024

#11903

Copy link
Contributor

@visumickey visumickey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm generally worried about this change since we are removing the unswizzle code. Let me review this again to make sure we are safe here.

@visumickey
Copy link
Contributor

I'm not comfortable with this PR. Without unswizzling, the tests will not be accurate. The host app would not be reset across every test. So, if one test does swizzling and if it fails to unswizzle - then the rest of the tests would run on a swizzled app which might not build confidence on the rest of the tests. So, we should not remove the unswizzling capability from tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants