Skip to content

Commit 2b91115

Browse files
committed
adjust code based on new complaints from linters
1 parent 9a9922a commit 2b91115

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/resource-handler/controller/etcd/etcd_controller_internal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func TestHandleDeletion_NoFinalizer(t *testing.T) {
158158
if err != nil {
159159
t.Errorf("handleDeletion() should not error when no finalizer, got: %v", err)
160160
}
161-
if result.Requeue {
161+
if result.RequeueAfter > 0 {
162162
t.Error("handleDeletion() should not requeue when no finalizer")
163163
}
164164
}

pkg/resource-handler/controller/etcd/etcd_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ func TestEtcdReconciler_ReconcileNotFound(t *testing.T) {
732732
if err != nil {
733733
t.Errorf("Reconcile() should not error on NotFound, got: %v", err)
734734
}
735-
if result.Requeue {
735+
if result.RequeueAfter > 0 {
736736
t.Errorf("Reconcile() should not requeue on NotFound")
737737
}
738738
}

0 commit comments

Comments
 (0)