Skip to content

Commit

Permalink
Merge pull request #3789 from adshmh/fix-output-leak-from-create-comm…
Browse files Browse the repository at this point in the history
…and-unit-tests

fix output leak from unit tests of helm create command
  • Loading branch information
Matthew Fisher committed Mar 29, 2018
2 parents d32a6ef + e0056a9 commit 531deec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/helm/create_test.go
Expand Up @@ -46,7 +46,7 @@ func TestCreateCmd(t *testing.T) {
defer os.Chdir(pwd)

// Run a create
cmd := newCreateCmd(os.Stdout)
cmd := newCreateCmd(ioutil.Discard)
if err := cmd.RunE(cmd, []string{cname}); err != nil {
t.Errorf("Failed to run create: %s", err)
return
Expand Down Expand Up @@ -117,7 +117,7 @@ func TestCreateStarterCmd(t *testing.T) {
defer os.Chdir(pwd)

// Run a create
cmd := newCreateCmd(os.Stdout)
cmd := newCreateCmd(ioutil.Discard)
cmd.ParseFlags([]string{"--starter", "starterchart"})
if err := cmd.RunE(cmd, []string{cname}); err != nil {
t.Errorf("Failed to run create: %s", err)
Expand Down

0 comments on commit 531deec

Please sign in to comment.