Integration: change signatures to fix golint warnings#39332
Integration: change signatures to fix golint warnings#39332yongtang merged 5 commits intomoby:masterfrom
Conversation
|
ping @vdemeester @yongtang ptal |
vdemeester
left a comment
There was a problem hiding this comment.
So, the ctx vs t 👼 t is supposed to be the first argument, and ctx as well. Seems like most of the linter prefer ctx than t, so I am ok with that change.
LGTM
Line 30: warning: context.Context should be the first parameter of a function (golint) Signed-off-by: Sebastiaan van Stijn <[email protected]>
``` Line 25: warning: context.Context should be the first parameter of a function (golint) Line 44: warning: context.Context should be the first parameter of a function (golint) Line 52: warning: context.Context should be the first parameter of a function (golint) ``` Signed-off-by: Sebastiaan van Stijn <[email protected]>
Line 59: warning: context.Context should be the first parameter of a function (golint) Signed-off-by: Sebastiaan van Stijn <[email protected]>
Line 30: warning: context.Context should be the first parameter of a function (golint) Signed-off-by: Sebastiaan van Stijn <[email protected]>
Line 441: warning: context.Context should be the first parameter of a function (golint) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1a9c9f1 to
dac5710
Compare
Yes that was the reason I tried to fix it by I fixed the |
|
argh; did I forget to stage something? |
|
oh, never mind; browser cache LOL |
|
Interesting; looks like this test is still flaky; |
yongtang
left a comment
There was a problem hiding this comment.
LGTM. It might make more sense for golint to allow t to be the first in test setup. But it is ok to go either way I think.
Codecov Report
@@ Coverage Diff @@
## master #39332 +/- ##
=========================================
Coverage ? 37.05%
=========================================
Files ? 611
Lines ? 45528
Branches ? 0
=========================================
Hits ? 16869
Misses ? 26373
Partials ? 2286 |
The nolint directives are not supported by all linters, so fixing these warnings: