From b2ca076df79ee7abbd2ec4dff48f811f0cc8fb55 Mon Sep 17 00:00:00 2001 From: CuriousCorrelation Date: Sun, 3 Jul 2022 18:11:10 +0530 Subject: [PATCH] fix: zsh completion test for cobra v1.5.0 --- cmd/completion/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/completion/main_test.go b/cmd/completion/main_test.go index 3dabd05856..cde139fcfa 100644 --- a/cmd/completion/main_test.go +++ b/cmd/completion/main_test.go @@ -30,7 +30,7 @@ func Test_ExecuteCommand(t *testing.T) { cmd.Execute() got := out.(*bytes.Buffer).Bytes() - expected := []byte(`#compdef _completion completion`) + expected := []byte(`#compdef completion`) assert.Equal(t, string(expected), string(got)[:len(expected)]) })