Skip to content

Conversation

@danielbachhuber
Copy link
Member

It looks like assertNotEquals is doing a truthy comparison that causes the test to fail.

See wp-cli/wp-cli#5764

It looks like `assertNotEquals` is doing a truthy comparison that causes
the test to fail
@danielbachhuber danielbachhuber added this to the 1.3.2 milestone Apr 12, 2023
@danielbachhuber danielbachhuber requested a review from a team as a code owner April 12, 2023 21:48
@danielbachhuber danielbachhuber self-assigned this Apr 12, 2023
Copy link
Contributor

@frankiejarrett frankiejarrett left a comment

Choose a reason for hiding this comment

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

Good call 👍

@danielbachhuber
Copy link
Member Author

@fjarrett I'm glad it turned out to be an easy fix 😌

@frankiejarrett
Copy link
Contributor

@danielbachhuber wondering if most assertEquals should also become assertSame?

@danielbachhuber
Copy link
Member Author

@fjarrett Probably, but I don't really want to open that can of worms right now 😁

@danielbachhuber danielbachhuber merged commit d5b7558 into main Apr 12, 2023
@danielbachhuber danielbachhuber deleted the fix-failing-unit-tests branch April 12, 2023 22:45
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.

3 participants