Skip to content

Commit

Permalink
fixup! Remove controller error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Jamet committed Mar 26, 2024
1 parent 3266430 commit ee05d53
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/controllers/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,12 @@ func TestReconcileShouldRequeuedWhenNodeSpecGetError(t *testing.T) {

result, err := reconciler.Reconcile(context.Background(), reconcile.Request{NamespacedName: types.NamespacedName{Name: "test-pod-1", Namespace: "ns"}})
assert.Error(t, err)
assert.True(t, result.Requeue)

assert.Empty(t, result)
if termError, ok := err.(interface{ Is(err error) bool }); ok {
// Reconcile retries any error but terminal errors.
// Ensure this error is not terminal.
assert.False(t, termError.Is(reconcile.TerminalError(nil)))
}
}

func TestReconcileWhenPodBelongsToStatefulSetIsAlwaysChecked(t *testing.T) {
Expand Down

0 comments on commit ee05d53

Please sign in to comment.