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

chore(tests): fix assertion for TestGetEndpoints and refactor assertion for TestKnativeSelectSplit #3951

Merged
merged 1 commit into from
May 4, 2023

Conversation

programmer04
Copy link
Member

What this PR does / why we need it:

This PR fixes assertion (and not properly configured test cases) for TestGetEndpoints to check not only the number of endpoints, but theirs content too. Moreover for TestKnativeSelectSplit switches to assertion library instead of combination of reflect.DeepEqual & t.Errorf.

Which issue this PR fixes:

It's been spotted during working on #3916

@programmer04 programmer04 requested a review from a team as a code owner May 4, 2023 14:10
@CLAassistant
Copy link

CLAassistant commented May 4, 2023

CLA assistant check
All committers have signed the CLA.

@programmer04 programmer04 enabled auto-merge (squash) May 4, 2023 14:13
Copy link
Member

@pmalek pmalek left a comment

Choose a reason for hiding this comment

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

Nice catch 👍 🚢

@programmer04 programmer04 merged commit 20a207a into main May 4, 2023
27 checks passed
@programmer04 programmer04 deleted the fix-test-assertion branch May 4, 2023 14:51
@programmer04 programmer04 self-assigned this May 8, 2023
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.

None yet

3 participants