-
Notifications
You must be signed in to change notification settings - Fork 14
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 missing unit tests #1156
add missing unit tests #1156
Conversation
Add unit tests for kloglevel package to ensure the funtions perform as expected. Signed-off-by: Shereen Haj <[email protected]>
simple unit test that verifies nodes names are gathered. Signed-off-by: Shereen Haj <[email protected]>
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.
/approve
/lgtm
thanks!
@@ -65,9 +65,10 @@ func getKLogLevel() *klog.Level { | |||
// Second, if the '-v' was not set but is still present in flags defined for the command, attempt to acquire it | |||
// by visiting all flags. | |||
flag.VisitAll(func(f *flag.Flag) { | |||
if level != nil { | |||
if level != nil || f.Name != "v" { |
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.
this should be non-critical, but seems logically correct
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.
tru it is only filtering earlier
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ffromani, shajmakh 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 |
check the commits please