Skip to content

Commit

Permalink
Fix two failing tests
Browse files Browse the repository at this point in the history
The error message has changed ever so slightly.
  • Loading branch information
bep committed May 13, 2015
1 parent bba5604 commit be18870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cobra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ func TestChildCommandFlags(t *testing.T) {
t.Errorf("invalid input should generate error")
}

if !strings.Contains(r.Output, "invalid argument \"10E\" for -i10E") {
if !strings.Contains(r.Output, "invalid argument \"10E\" for i10E") {
t.Errorf("Wrong error message displayed, \n %s", r.Output)
}
}
Expand Down Expand Up @@ -777,7 +777,7 @@ func TestFlagsBeforeCommand(t *testing.T) {

// With parsing error properly reported
x = fullSetupTest("-i10E echo")
if !strings.Contains(x.Output, "invalid argument \"10E\" for -i10E") {
if !strings.Contains(x.Output, "invalid argument \"10E\" for i10E") {
t.Errorf("Wrong error message displayed, \n %s", x.Output)
}

Expand Down

0 comments on commit be18870

Please sign in to comment.