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

Move priority calculation to separate method #145

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Move priority calculation to separate method #145

merged 1 commit into from
Jul 20, 2023

Conversation

liu15
Copy link
Collaborator

@liu15 liu15 commented Jul 19, 2023

The priority calculation can be improved if the tests are already sorted by priority, however because of the global module initializations in prioritize(), it cannot be overridden without overridding all methods that reference machine or configuration.

Splitting the priority calculation into a separate method allows it to be overridden easily.

@liu15 liu15 requested a review from dawson6 July 19, 2023 23:20
@liu15 liu15 merged commit 643cf3b into main Jul 20, 2023
18 checks passed
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