mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	JobIntegrationTest: Retry polling even if the client fails to obtain Jobs at once
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
This commit is contained in:
		@@ -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),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user