Skip to content

Commit

Permalink
update an assertion in integration test leaderelection_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
cfryanr committed Apr 29, 2024
1 parent b664eb7 commit 2f8d025
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/leaderelection_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2023 the Pinniped contributors. All Rights Reserved.
// Copyright 2021-2024 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package integration
Expand Down Expand Up @@ -304,8 +304,8 @@ func forceRestart(ctx context.Context, t *testing.T, namespace *corev1.Namespace
require.NoError(t, err)

newLease := waitForIdentity(ctx, t, namespace, leaseName, clients)
require.Zero(t, *newLease.Spec.LeaseTransitions)
require.Greater(t, newLease.Spec.AcquireTime.UnixNano(), startLease.Spec.AcquireTime.UnixNano())
require.LessOrEqual(t, *newLease.Spec.LeaseTransitions, int32(1))
require.GreaterOrEqual(t, newLease.Spec.AcquireTime.UnixNano(), startLease.Spec.AcquireTime.UnixNano())

return newLease
}
Expand Down

0 comments on commit 2f8d025

Please sign in to comment.