From dd728861a9a4353273ad77b7e16cba69144e42e6 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Mon, 24 Feb 2025 07:24:15 +0200 Subject: [PATCH] Fix tests Signed-off-by: Yarden Shoham --- cmd/helm/flags.go | 1 - cmd/helm/flags_test.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/helm/flags.go b/cmd/helm/flags.go index d8e0107fd..379b2140d 100644 --- a/cmd/helm/flags.go +++ b/cmd/helm/flags.go @@ -24,7 +24,6 @@ import ( "sort" "strings" - "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/pflag" "k8s.io/klog/v2" diff --git a/cmd/helm/flags_test.go b/cmd/helm/flags_test.go index bea916c34..3b43b1f47 100644 --- a/cmd/helm/flags_test.go +++ b/cmd/helm/flags_test.go @@ -109,9 +109,9 @@ func TestPostRendererFlagSetOnce(t *testing.T) { err := str.Set("echo") require.NoError(t, err) - // Set the binary again to the same value is ok + // Set the binary again to the same value is not ok err = str.Set("echo") - require.NoError(t, err) + require.Error(t, err) // Set the binary again to a different value is not ok err = str.Set("cat")