-
Notifications
You must be signed in to change notification settings - Fork 1.2k
🌱 Add some more tests to the priorityqueue #3387
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
Conversation
|
/cc @sbueringer |
This change adds a few additional tests to the priorityqueue as well as extends an existing one to test a few more things. All of these already pass.
sbueringer
left a comment
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.
Nice, thx!
One nit
| Expect(priority).To(Equal(1)) | ||
| Expect(q.Len()).To(Equal(0)) | ||
|
|
||
| metrics.mu.Lock() |
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.
Looks like unlock is missing
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.
Yeah, the test ends after checking on the metrics, so there is no need to unlock, it will gets gced there anyways
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.
Yup, got that. Just seems cleaner to unlock and not leave that locked
|
/lgtm /hold |
|
LGTM label has been added. Git tree hash: da7942db793eb6ff8b9ad9ef2fc0a4aff49c509e
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, sbueringer 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 |
|
/hold cancel |
This change adds a few additional tests to the priorityqueue as well as extends an existing one to test a few more things. All of these already pass.