mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-03 12:08:31 +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());
|
||||
|
||||
// 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)
|
||||
String dataProductEntityLink =
|
||||
@ -5020,8 +5021,9 @@ public class WorkflowDefinitionResourceTest extends OpenMetadataApplicationTest
|
||||
LOG.info("Verifying dataProduct status was auto-approved...");
|
||||
await()
|
||||
.atMost(Duration.ofSeconds(120))
|
||||
.pollInterval(Duration.ofSeconds(1))
|
||||
.pollDelay(Duration.ofMillis(500))
|
||||
.pollInterval(Duration.ofSeconds(2))
|
||||
.pollDelay(Duration.ofSeconds(2))
|
||||
.ignoreExceptions() // Ignore transient errors during polling
|
||||
.until(
|
||||
() -> {
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user