From c59a0972097fb87c49361347009adda8887a8ee4 Mon Sep 17 00:00:00 2001 From: Zach Burgess Date: Mon, 7 Jul 2025 14:19:35 -0700 Subject: [PATCH] Remove duplicate test case from crds_test.go The "good" test case for CRDs is done in `TestGoodChart` in lint_test.go. Signed-off-by: Zach Burgess --- pkg/lint/rules/crds_test.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/lint/rules/crds_test.go b/pkg/lint/rules/crds_test.go index 66da06121..563392377 100644 --- a/pkg/lint/rules/crds_test.go +++ b/pkg/lint/rules/crds_test.go @@ -24,17 +24,8 @@ import ( "helm.sh/helm/v4/pkg/lint/support" ) -const crdsTestBaseDir = "./testdata/goodone" const invalidCrdsDir = "./testdata/invalidcrdsdir" -func TestCrdsDir(t *testing.T) { - linter := support.Linter{ChartDir: crdsTestBaseDir} - Crds(&linter) - res := linter.Messages - - assert.Emptyf(t, res, "Expected no errors, got %v", res) -} - func TestInvalidCrdsDir(t *testing.T) { linter := support.Linter{ChartDir: invalidCrdsDir} Crds(&linter)