diff --git a/cobra_test.go b/cobra_test.go index 97090b10..60809fc9 100644 --- a/cobra_test.go +++ b/cobra_test.go @@ -916,15 +916,14 @@ func TestRootUnknownCommand(t *testing.T) { func TestRootUnknownCommandSilenced(t *testing.T) { r := noRRSetupTestSilenced("bogus") - 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\"\"\n Got:\n %q\n", 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\"\"\nGot:\n %q\n", r.Output) } }