From cc85352a0eb03c118f8e899fd9f398dfae17054e Mon Sep 17 00:00:00 2001 From: Zach Burgess Date: Mon, 7 Jul 2025 14:28:19 -0700 Subject: [PATCH] Use `assert.Len` instead of `assert.Lenf` The default message from testify is descriptive enough. Signed-off-by: Zach Burgess --- pkg/lint/rules/crds_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lint/rules/crds_test.go b/pkg/lint/rules/crds_test.go index 563392377..d497b29ba 100644 --- a/pkg/lint/rules/crds_test.go +++ b/pkg/lint/rules/crds_test.go @@ -31,6 +31,6 @@ func TestInvalidCrdsDir(t *testing.T) { Crds(&linter) res := linter.Messages - assert.Lenf(t, res, 1, "Expected one error, got %d, %v", len(res), res) + assert.Len(t, res, 1) assert.ErrorContains(t, res[0].Err, "not a directory") }