mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-13 17:32:53 +00:00
Increase polling in workflow definition resource test
This commit is contained in:
parent
f44537bd5b
commit
2f05ea716a
@ -4998,7 +4998,8 @@ public class WorkflowDefinitionResourceTest extends OpenMetadataApplicationTest
|
|||||||
LOG.debug("Created data product without reviewers: {}", dataProduct.getName());
|
LOG.debug("Created data product without reviewers: {}", dataProduct.getName());
|
||||||
|
|
||||||
// Wait for workflow to process and auto-approve
|
// Wait for workflow to process and auto-approve
|
||||||
java.lang.Thread.sleep(10000);
|
// Adding extra time to handle potential duplicate workflow executions
|
||||||
|
java.lang.Thread.sleep(15000);
|
||||||
|
|
||||||
// Verify no user tasks were created (since there are no reviewers, it should auto-approve)
|
// Verify no user tasks were created (since there are no reviewers, it should auto-approve)
|
||||||
String dataProductEntityLink =
|
String dataProductEntityLink =
|
||||||
@ -5020,8 +5021,9 @@ public class WorkflowDefinitionResourceTest extends OpenMetadataApplicationTest
|
|||||||
LOG.info("Verifying dataProduct status was auto-approved...");
|
LOG.info("Verifying dataProduct status was auto-approved...");
|
||||||
await()
|
await()
|
||||||
.atMost(Duration.ofSeconds(120))
|
.atMost(Duration.ofSeconds(120))
|
||||||
.pollInterval(Duration.ofSeconds(1))
|
.pollInterval(Duration.ofSeconds(2))
|
||||||
.pollDelay(Duration.ofMillis(500))
|
.pollDelay(Duration.ofSeconds(2))
|
||||||
|
.ignoreExceptions() // Ignore transient errors during polling
|
||||||
.until(
|
.until(
|
||||||
() -> {
|
() -> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user