Skip to content

Commit

Permalink
Remove dead code with faked output
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsutherland committed Nov 20, 2018
1 parent 251a261 commit 0e00b89
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions cmd/configure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ import (
)

func TestBareConfigure(t *testing.T) {
oldErr := Err
defer func() {
Err = oldErr
}()

var buf bytes.Buffer
Err = &buf

flags := pflag.NewFlagSet("fake", pflag.PanicOnError)
setupConfigureFlags(flags)

Expand Down Expand Up @@ -150,17 +142,12 @@ func TestConfigureToken(t *testing.T) {
defer ts.Close()

oldOut := Out
oldErr := Err
Out = ioutil.Discard
defer func() {
Out = oldOut
Err = oldErr
}()

for _, tc := range testCases {
var buf bytes.Buffer
Err = &buf

flags := pflag.NewFlagSet("fake", pflag.PanicOnError)
setupConfigureFlags(flags)

Expand Down Expand Up @@ -238,17 +225,12 @@ func TestConfigureAPIBaseURL(t *testing.T) {
}

oldOut := Out
oldErr := Err
Out = ioutil.Discard
defer func() {
Out = oldOut
Err = oldErr
}()

for _, tc := range testCases {
var buf bytes.Buffer
Err = &buf

flags := pflag.NewFlagSet("fake", pflag.PanicOnError)
setupConfigureFlags(flags)

Expand Down

0 comments on commit 0e00b89

Please sign in to comment.