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

Updated test to have an assert to assure list is of length 3 (improve reliability) #12982

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

mcgicjn2
Copy link
Contributor

@mcgicjn2 mcgicjn2 commented Jan 7, 2025

Improve Reliability of Set_Moving_Loads_tests

📝 Description
Sonarcube indicated a reliability rating of D for the test file, linked to the fact that a list is constructed but there was no check that the index checked is created.

🆕 Changelog
This was resolved by providing an assertion in the test that the created list is of the correct size before the indexing of the list.

Copy link
Contributor

@rfaasse rfaasse left a comment

Choose a reason for hiding this comment

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

Thanks for looking into these ones! This should fix the issues on SQ, but I don't think we can check up front if it will work

@rfaasse rfaasse enabled auto-merge (squash) January 9, 2025 11:43
@rfaasse rfaasse merged commit a7d8c7d into master Jan 9, 2025
11 checks passed
@rfaasse rfaasse deleted the geo/12978-improve-reliability-in-tests branch January 9, 2025 13:33
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.

[GeoMechanicsApplication] Improve reliability for set_multiple_moving_loads tests
2 participants