From 06a345eef89bd8be441130baa7466c38cf94d2eb Mon Sep 17 00:00:00 2001 From: Enin Kaduk Date: Tue, 11 Jun 2024 15:02:25 +0200 Subject: [PATCH] update: change constant for support.Warn Signed-off-by: Enin Kaduk --- pkg/action/lint_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/action/lint_test.go b/pkg/action/lint_test.go index 4ab611137..5e626a2a2 100644 --- a/pkg/action/lint_test.go +++ b/pkg/action/lint_test.go @@ -18,6 +18,8 @@ package action import ( "testing" + + "helm.sh/helm/v3/pkg/lint/support" ) var ( @@ -165,7 +167,7 @@ func TestLint_ChartWithInfo(t *testing.T) { testLint.Quiet = true result := testLint.Run(testCharts, values) for _, message := range result.Messages { - if message.Severity < 3 { + if message.Severity < support.WarningSev { t.Error("expected no INFO(1) or UNKNOWN(0) messages, but got \nSeverity:", message.Severity, "\nError:", message.Err) } }