Skip to content

fix: update brittle test case #133

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

Merged
merged 1 commit into from
Jan 17, 2022
Merged

fix: update brittle test case #133

merged 1 commit into from
Jan 17, 2022

Conversation

migmartri
Copy link
Contributor

Fix a brittle test in where the issue was that the .Dependencies() method returns a slide of *Chart in arbitrary order. This means that in the case in where the order was inverted, the second level dep array access was accessing to a nil subchart.

By sorting the array of dependencies, the test become deterministic.

Signed-off-by: Miguel Martinez Trivino [email protected]

Signed-off-by: Miguel Martinez Trivino <[email protected]>
@migmartri migmartri requested review from josvazg and petewall January 12, 2022 09:52
@migmartri migmartri merged commit 2f83928 into main Jan 17, 2022
@migmartri migmartri deleted the testgroupchangesbychart branch January 17, 2022 11:16
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.

2 participants