Skip to content

Commit 730f754

Browse files
authored
fix(tests): Token sometimes expire in TestReconcileArgoCD_reconcileArgoLocalUsersTurnOnAutoRenew (argoproj-labs#2112)
* fix(tests): Token sometimes expire in TestReconcileArgoCD_reconcileArgoLocalUsersTurnOnAutoRenew localusers_test.go:786: Error Trace: /home/runner/work/argocd-operator/argocd-operator/controllers/argocd/localusers_test.go:786 Error: Received unexpected error: token has invalid claims: token is expired Test: TestReconcileArgoCD_reconcileArgoLocalUsersTurnOnAutoRenew Signed-off-by: Oliver Gondža <ogondza@gmail.com> * Drop reproducing test Signed-off-by: Oliver Gondža <ogondza@gmail.com> --------- Signed-off-by: Oliver Gondža <ogondza@gmail.com>
1 parent 74a2072 commit 730f754

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

controllers/argocd/localusers_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,7 @@ func TestReconcileArgoCD_reconcileArgoLocalUsersTurnOnAutoRenew(t *testing.T) {
770770
expect.Equal(userTokens[0].ExpiresAt, userTokens1[0].ExpiresAt)
771771

772772
// Wait for the timer to expire and check that it updated the secrets
773-
774-
time.Sleep(3 * time.Second)
773+
time.Sleep(2 * time.Second)
775774

776775
userSecret = corev1.Secret{}
777776
err = r.Get(context.TODO(), types.NamespacedName{Name: "alice-local-user", Namespace: cr.Namespace}, &userSecret)

0 commit comments

Comments
 (0)