Enable linter revive and resolve found errors: part 1

Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
This commit is contained in:
Xun Jiang
2023-04-24 15:29:20 +08:00
parent a0b0b7cd9b
commit 180cc4e31d
40 changed files with 150 additions and 171 deletions

View File

@@ -63,8 +63,8 @@ var _ = Describe("Server Status Request Reconciler", func() {
// Setup reconciler
Expect(velerov1api.AddToScheme(scheme.Scheme)).To(Succeed())
r := NewServerStatusRequestReconciler(
fake.NewClientBuilder().WithScheme(scheme.Scheme).WithObjects(test.req).Build(),
context.Background(),
fake.NewClientBuilder().WithScheme(scheme.Scheme).WithObjects(test.req).Build(),
test.reqPluginLister,
testclocks.NewFakeClock(now),
velerotest.NewLogger(),