Merge pull request #754 from mattmoyer/fix-TestLegacyPodCleaner-flake

Relax the timeout for TestLegacyPodCleaner a bit.
This commit is contained in:
Matt Moyer 2021-07-28 12:43:08 -06:00 committed by GitHub
commit 85560299e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ func findSuccessfulStrategy(credentialIssuer *conciergev1alpha.CredentialIssuer,
func TestLegacyPodCleaner(t *testing.T) { func TestLegacyPodCleaner(t *testing.T) {
env := testlib.IntegrationEnv(t).WithCapability(testlib.ClusterSigningKeyIsAvailable) env := testlib.IntegrationEnv(t).WithCapability(testlib.ClusterSigningKeyIsAvailable)
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute) ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel() defer cancel()
kubeClient := testlib.NewKubernetesClientset(t) kubeClient := testlib.NewKubernetesClientset(t)
@ -144,5 +144,5 @@ func TestLegacyPodCleaner(t *testing.T) {
return true, nil return true, nil
} }
return false, err return false, err
}, 60*time.Second, 1*time.Second) }, 2*time.Minute, 1*time.Second)
} }