Skip to content

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...
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