diff --git a/controllers/deactivation/deactivation_controller_test.go b/controllers/deactivation/deactivation_controller_test.go index 32f50dfee..0a7776da8 100644 --- a/controllers/deactivation/deactivation_controller_test.go +++ b/controllers/deactivation/deactivation_controller_test.go @@ -264,7 +264,7 @@ func TestReconcile(t *testing.T) { } // when - res, err := r.Reconcile(context.TODO(), req) + _, err := r.Reconcile(context.TODO(), req) require.Error(t, err) require.Equal(t, "mock error", err.Error()) @@ -323,7 +323,7 @@ func TestReconcile(t *testing.T) { } // when - res, err := r.Reconcile(context.TODO(), req) + _, err := r.Reconcile(context.TODO(), req) require.Error(t, err) require.Equal(t, "mock error", err.Error())