From 4a183f559493440a74c220fbeb23aa30cf0046bb Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 27 Jul 2026 19:30:10 +0200 Subject: [PATCH] chore(template): chore: fix testifylint issues part 1 #### Description chore: fix testifylint issues in template Signed-off-by: Matthieu MOREL --- template/getter_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/getter_test.go b/template/getter_test.go index e92d1fa7c6..ed4c5b9486 100644 --- a/template/getter_test.go +++ b/template/getter_test.go @@ -283,7 +283,7 @@ func TestTemplatedSecret(t *testing.T) { if testCase.expectedErr != "" { assert.EqualError(t, err, testCase.expectedErr) } else { - assert.NoError(t, err) + require.NoError(t, err) require.NotNil(t, expandedSecret) assert.Equal(t, testCase.expected, string(expandedSecret.Spec.Data), testCase.desc) } @@ -562,7 +562,7 @@ func TestTemplatedConfig(t *testing.T) { expandedConfig2, sensitive, err2 := templatedDependencies.Configs().(TemplatedConfigGetter).GetAndFlagSecretData("templatedconfig") if testCase.expectedErr != "" { - assert.EqualError(t, err1, testCase.expectedErr) + require.EqualError(t, err1, testCase.expectedErr) assert.EqualError(t, err2, testCase.expectedErr) } else { assert.NoError(t, err1)