From ec452170d21fadd9e927f24ae471a258dc545261 Mon Sep 17 00:00:00 2001 From: bogem Date: Sat, 20 Aug 2016 12:02:26 +0500 Subject: [PATCH] Fix error messages in cobra_test --- cobra_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cobra_test.go b/cobra_test.go index 881a621..f23da7b 100644 --- a/cobra_test.go +++ b/cobra_test.go @@ -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) } }