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 TestNewKubernetesSource sporadic #454

Merged
merged 1 commit into from
Nov 23, 2024

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Nov 22, 2024

Description of your changes

Fixes #275

This PR proposes a fix for the TestNewKubernetesSource sporadic by comparing the sorted slices of UnstructuredWithMetadata objects.

I have:

  • Read and followed Upjet's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Locally ran the test 100 times with cache disabled.

- Compare sorted expected and observed slices.

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@ulucinar ulucinar merged commit 4d4ed3d into crossplane:main Nov 23, 2024
6 checks passed
@ulucinar ulucinar deleted the fix-kssource-test branch November 23, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky TestNewKubernetesSource/Successful unit test
2 participants