mirror of
https://github.com/spf13/cobra
synced 2024-12-28 07:17:06 +00:00
Fix error messages in cobra_test
This commit is contained in:
parent
7c674d9e72
commit
ec452170d2
1 changed files with 2 additions and 2 deletions
|
@ -919,12 +919,12 @@ func TestRootUnknownCommandSilenced(t *testing.T) {
|
|||
s := "Run 'cobra-test --help' for usage.\n"
|
||||
|
||||
if r.Output != "" {
|
||||
t.Errorf("Unexpected response.\nExpecting to be: \n\"\"\n Got:\n %q\n", s, r.Output)
|
||||
t.Errorf("Unexpected response.\nExpecting to be:\n %q\nGot:\n %q\n", s, r.Output)
|
||||
}
|
||||
|
||||
r = noRRSetupTestSilenced("--strtwo=a bogus")
|
||||
if r.Output != "" {
|
||||
t.Errorf("Unexpected response.\nExpecting to be:\n\"\"\nGot:\n %q\n", s, r.Output)
|
||||
t.Errorf("Unexpected response.\nExpecting to be:\n %q\nGot:\n %q\n", s, r.Output)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue