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

ref(tests) Replace usage of predicate in MockApiClient #29997

Merged
merged 3 commits into from
Nov 15, 2021

Conversation

markstory
Copy link
Member

Replace the deprecated predicate option with the new match option. This helps improve the readability of tests without sacrificing the custom logic used in performance tests.

Replace predicate callables with the new match behavior. This helps
reduce bloat in tests and makes tests more readable.
Don't do comparisons we don't need to as we know the match won't work.
@markstory markstory requested review from a team November 12, 2021 19:25
@markstory markstory requested review from a team as code owners November 12, 2021 19:25
Copy link
Member

@matejminar matejminar left a comment

Choose a reason for hiding this comment

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

👏👏👏 Looks good to me.

@markstory markstory merged commit 2ab1195 into master Nov 15, 2021
@markstory markstory deleted the ref-request-predicate branch November 15, 2021 15:30
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants