mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-15 11:46:06 +00:00
fix require-error rule from testifylint
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user