mirror of
https://github.com/helm/helm.git
synced 2026-04-21 14:17:01 -04:00
Moving to SetOut and SetErr for Cobra
SetOutput is deprecated. This causes it to fail linting.
Signed-off-by: Matt Farina <matt@mattfarina.com>
(cherry picked from commit b689ff203e)
This commit is contained in:
parent
a31c17023c
commit
4c2f88b2ab
1 changed files with 2 additions and 1 deletions
|
|
@ -71,7 +71,8 @@ func runTestCases(t *testing.T, testCases []testCase) {
|
|||
Args: tc.validateFunc,
|
||||
}
|
||||
cmd.SetArgs(tc.args)
|
||||
cmd.SetOutput(io.Discard)
|
||||
cmd.SetOut(io.Discard)
|
||||
cmd.SetErr(io.Discard)
|
||||
|
||||
err := cmd.Execute()
|
||||
if tc.wantError == "" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue