-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add unit tests for queuejob util functions #545
Add unit tests for queuejob util functions #545
Conversation
|
||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
result := HigherSystemPriorityQJ(tt.qj1, tt.qj2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change the method signature to not use interface{} and use AppWrapper ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a new commit to make use of AppWrapper
, it required me to change the heap.go functions as well to use the AppWrapper type. I'm not sure if this is the ideal way of doing it, hoping to get your thoughts/advice on the changes made. Thank you @z103cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are LGTM. @astefanutti please review this change and approve it. I think it might be conflict with your k8s upgrade PR>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/LGTM
/lgtm Thanks! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: astefanutti The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue link
Closes #544
What changes have been made
Created unit tests on the functions in queuejob util, covering different scenarios.
Verification steps
Tests can be run locally and see them passing.
Checks