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 some tests to work with Robolectric upgrade #496

Closed
wants to merge 1 commit into from

Conversation

vinc3m1
Copy link
Contributor

@vinc3m1 vinc3m1 commented Feb 20, 2019

Robolectric 4 is stricter with Drawable.equals, and one of these tests was just wrong...

Robolectric 4 is stricter with Drawable.equals, and one of these tests was just wrong...
@@ -924,7 +924,7 @@ public void testGetLinkedDrawableForAnimation() {
assertThat(drawables).hasSize(1);
assertThat(drawables).contains(d3);

unmount(2, mountItem2);
unmount(1, mountItem2);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this passes in robolectric3 probably due to Drawable.equals not being strict enough, so d2.equals(d3) == true in robo3 but not robo4.

Copy link
Member

Choose a reason for hiding this comment

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

This is terrible. Thanks for fixing this.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@passy has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@astreet
Copy link
Contributor

astreet commented Feb 21, 2019

Thanks @vinc3m1!

@passy
Copy link
Member

passy commented Feb 21, 2019

That's amazing. Thanks a lot for fixing this before we will actually feel that pain. :)

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