Skip to content

Commit e35ad25

Browse files
authored
Merge pull request kubernetes#127078 from tenzen-y/job-integration-retry-polling-job-until-timeout
JobInterationTest: Retry polling even if the client fails to obtain Jobs at once
2 parents 1942134 + 34dcec9 commit e35ad25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/job/job_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3970,7 +3970,8 @@ func validateJobsPodsStatusOnlyWithTimeout(ctx context.Context, t testing.TB, cl
39703970
if err := wait.PollUntilContextTimeout(ctx, waitInterval, timeout, true, func(ctx context.Context) (bool, error) {
39713971
updatedJob, err := clientSet.BatchV1().Jobs(jobObj.Namespace).Get(ctx, jobObj.Name, metav1.GetOptions{})
39723972
if err != nil {
3973-
t.Fatalf("Failed to get updated Job: %v", err)
3973+
t.Logf("Failed to get updated Job: %v", err)
3974+
return false, nil
39743975
}
39753976
actualCounts = podsByStatus{
39763977
Active: int(updatedJob.Status.Active),

0 commit comments

Comments
 (0)