Merge pull request #127078 from tenzen-y/job-integration-retry-polling-job-until-timeout

JobInterationTest: Retry polling even if the client fails to obtain Jobs at once
This commit is contained in:
Kubernetes Prow Robot 2024-09-04 21:04:34 +01:00 committed by GitHub
commit e35ad25926
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3970,7 +3970,8 @@ func validateJobsPodsStatusOnlyWithTimeout(ctx context.Context, t testing.TB, cl
if err := wait.PollUntilContextTimeout(ctx, waitInterval, timeout, true, func(ctx context.Context) (bool, error) {
updatedJob, err := clientSet.BatchV1().Jobs(jobObj.Namespace).Get(ctx, jobObj.Name, metav1.GetOptions{})
if err != nil {
t.Fatalf("Failed to get updated Job: %v", err)
t.Logf("Failed to get updated Job: %v", err)
return false, nil
}
actualCounts = podsByStatus{
Active: int(updatedJob.Status.Active),