Some readability nits, I didn't get a chance to comment#3099
Some readability nits, I didn't get a chance to comment#3099knative-prow-robot merged 3 commits intoknative:masterfrom
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@vagababov: 0 warnings.
Details
In response to this:
/lint
Proposed Changes
- tests do "got... want", rather than vice versa
- reduce scope of some variables
- make sure err != nil, before calling err.Error(), otherwise a panic might ensue.
- other minor stuff.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
|
Raised test coverage, since the main |
|
/test pull-knative-serving-go-coverage |
|
The following is the coverage report on pkg/.
|
| maxConcurrency int32, revisionGetter func(RevisionID) (*v1alpha12.Revision, error), | ||
| endpointsGetter func(RevisionID) (int32, error), logger *zap.SugaredLogger, | ||
| initCapacity int32) *Throttler { | ||
| params := queue.BreakerParams{QueueDepth: 1, MaxConcurrency: maxConcurrency, InitialCapacity: initCapacity} |
There was a problem hiding this comment.
Why the queueDepth change in the params? Should getThrottler just take this as a parameter?
There was a problem hiding this comment.
The current tests do not call for the depth of more than 1.
And the parameter list is already incessantly long.
Given these two observations I opted to just change the constant.
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattmoor, vagababov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Some readability nits, I didn't get a chance to comment * Raise the test coverage * review issues addressed
/lint
Proposed Changes
/cc @dgerd @vvraskin