Signed-off-by: Yarden Shoham <git@yardenshoham.com>
pull/30572/head
Yarden Shoham 7 months ago
parent 326fdc3e5f
commit dd728861a9

@ -24,7 +24,6 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"k8s.io/klog/v2" "k8s.io/klog/v2"

@ -109,9 +109,9 @@ func TestPostRendererFlagSetOnce(t *testing.T) {
err := str.Set("echo") err := str.Set("echo")
require.NoError(t, err) 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") err = str.Set("echo")
require.NoError(t, err) require.Error(t, err)
// Set the binary again to a different value is not ok // Set the binary again to a different value is not ok
err = str.Set("cat") err = str.Set("cat")

Loading…
Cancel
Save