mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 12:36:23 +00:00 
			
		
		
		
	fix test (#22968)
Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
This commit is contained in:
		
							parent
							
								
									80798a63e2
								
							
						
					
					
						commit
						946f63c83d
					
				@ -88,18 +88,20 @@ export const waitForDataContractExecution = async (
 | 
				
			|||||||
          consecutiveErrors++;
 | 
					          consecutiveErrors++;
 | 
				
			||||||
          if (consecutiveErrors >= maxConsecutiveErrors) {
 | 
					          if (consecutiveErrors >= maxConsecutiveErrors) {
 | 
				
			||||||
            throw new Error(
 | 
					            throw new Error(
 | 
				
			||||||
              `Failed to get contract execution status after ${maxConsecutiveErrors} consecutive attempts`
 | 
					              `Failed to get contract execution status after ${maxConsecutiveErrors} consecutive attempts: ${error}`
 | 
				
			||||||
            );
 | 
					            );
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          return 'Running';
 | 
					          throw error;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        message: 'Wait for data contract execution to complete',
 | 
					        message: 'Wait for data contract execution to complete',
 | 
				
			||||||
        timeout: 750_000,
 | 
					        timeout: 150_000,
 | 
				
			||||||
        intervals: [30_000, 15_000, 5_000],
 | 
					        intervals: [5_000, 10_000, 15_000],
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    .toEqual(expect.stringMatching(/(Aborted|Success|Failed)/));
 | 
					    .toEqual(
 | 
				
			||||||
 | 
					      expect.stringMatching(/(Aborted|Success|Failed|PartialSuccess|Queued)/)
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user