mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
Fix two failing tests
The error message has changed ever so slightly.
This commit is contained in:
parent
bba56042cf
commit
be18870136
1 changed files with 2 additions and 2 deletions
|
@ -481,7 +481,7 @@ func TestChildCommandFlags(t *testing.T) {
|
||||||
t.Errorf("invalid input should generate error")
|
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)
|
t.Errorf("Wrong error message displayed, \n %s", r.Output)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -777,7 +777,7 @@ func TestFlagsBeforeCommand(t *testing.T) {
|
||||||
|
|
||||||
// With parsing error properly reported
|
// With parsing error properly reported
|
||||||
x = fullSetupTest("-i10E echo")
|
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)
|
t.Errorf("Wrong error message displayed, \n %s", x.Output)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue