From 03efcee04ed80fa011fb453ba6cea3e3c4aa6dd2 Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 11 May 2020 13:30:30 +0200 Subject: [PATCH] fix after rebasing --- cobra/cmd/init_test.go | 2 +- command_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cobra/cmd/init_test.go b/cobra/cmd/init_test.go index c4b3f09a21..282fcd7284 100644 --- a/cobra/cmd/init_test.go +++ b/cobra/cmd/init_test.go @@ -59,7 +59,7 @@ func TestGoldenInitCmd(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - initCmd.Flags().Set("pkg-name", tt.pkgName) + er(initCmd.Flags().Set("pkg-name", tt.pkgName)) viper.Set("useViper", true) projectPath, err := initializeProject(tt.args) defer func() { diff --git a/command_test.go b/command_test.go index d6cb850e9f..3873e5737f 100644 --- a/command_test.go +++ b/command_test.go @@ -783,7 +783,7 @@ func TestPersistentRequiredFlagsWithDisableFlagParsing(t *testing.T) { parent := &Command{Use: "parent", Run: emptyRun} parent.PersistentFlags().Bool("foo", false, "") flag := parent.PersistentFlags().Lookup("foo") - parent.MarkPersistentFlagRequired("foo") + er(parent.MarkPersistentFlagRequired("foo")) child := &Command{Use: "child", Run: emptyRun} child.DisableFlagParsing = true