diff --git a/pkg/kubectl/cmd/util/factory_test.go b/pkg/kubectl/cmd/util/factory_test.go index beeb73d5939..41af6303ea8 100644 --- a/pkg/kubectl/cmd/util/factory_test.go +++ b/pkg/kubectl/cmd/util/factory_test.go @@ -305,7 +305,11 @@ func TestValidateCachesSchema(t *testing.T) { } func TestSubstitueUser(t *testing.T) { - usr, _ := user.Current() + usr, err := user.Current() + if err != nil { + t.Logf("SKIPPING TEST: unexpected error: %v", err) + return + } tests := []struct { input string expected string