fix require-error rule from testifylint

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-06-23 15:39:54 +00:00
parent 3024e6223e
commit 07ea14962c
99 changed files with 483 additions and 440 deletions
+3 -3
View File
@@ -125,7 +125,7 @@ func TestFetchBackupInfo(t *testing.T) {
}
for _, itm := range test.informerBackups {
assert.NoError(t, r.kbClient.Create(context.Background(), itm))
require.NoError(t, r.kbClient.Create(context.Background(), itm))
}
}
@@ -180,7 +180,7 @@ func TestProcessQueueItemSkips(t *testing.T) {
)
if test.restore != nil {
assert.NoError(t, fakeClient.Create(context.Background(), test.restore))
require.NoError(t, fakeClient.Create(context.Background(), test.restore))
}
r := NewRestoreReconciler(
@@ -524,7 +524,7 @@ func TestRestoreReconcile(t *testing.T) {
require.NoError(t, r.kbClient.Create(context.Background(), test.location))
}
if test.backup != nil {
assert.NoError(t, r.kbClient.Create(context.Background(), test.backup))
require.NoError(t, r.kbClient.Create(context.Background(), test.backup))
}
if test.restore != nil {