increase allowed delta in test to allow for slower CI workers

This commit is contained in:
Ryan Richard
2024-10-14 09:32:06 -07:00
parent dc195536d0
commit 5c252fd083

View File

@@ -2196,7 +2196,8 @@ func requireUserCanUseKubectlWithoutAuthenticatingAgain(
func requireGCAnnotationsOnSessionStorage(ctx context.Context, t *testing.T, supervisorNamespace string, startTime time.Time, token *oidctypes.Token) {
// check that the access token is new (since it's just been refreshed) and has close to two minutes left.
testutil.RequireTimeInDelta(t, startTime.Add(2*time.Minute), token.AccessToken.Expiry.Time, 15*time.Second)
// Give some significant fudge factor to allow for slow CI workers.
testutil.RequireTimeInDelta(t, startTime.Add(2*time.Minute), token.AccessToken.Expiry.Time, 35*time.Second)
kubeClient := testlib.NewKubernetesClientset(t).CoreV1()