mirror of
https://github.com/helm/helm.git
synced 2026-08-06 16:11:25 +00: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>
This commit is contained in:
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user