mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-04 21:32:16 +00:00
fix test (#22968)
Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
This commit is contained in:
parent
5e7e518f30
commit
70d3fb20ef
@ -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