This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git

commit 29cb128ddca999aea413810ebc762a8f6f8b4061
Author: Alex Heneveld <[email protected]>
AuthorDate: Thu Mar 30 13:13:00 2023 +0100

    increase delays to fix time-sensitive tests
    
    these tests occasionally failed on slow machines because of short waits
---
 .../test/java/org/apache/brooklyn/camp/brooklyn/WorkflowYamlTest.java   | 2 +-
 .../brooklyn/core/workflow/WorkflowNestedAndCustomExtensionTest.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/WorkflowYamlTest.java
 
b/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/WorkflowYamlTest.java
index 5052f7a69b..2624818432 100644
--- 
a/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/WorkflowYamlTest.java
+++ 
b/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/WorkflowYamlTest.java
@@ -908,7 +908,7 @@ public class WorkflowYamlTest extends AbstractYamlTest {
                 "        - set-sensor integer x = 3");
         waitForApplicationTasks(app);
         Entity entity = Iterables.getOnlyElement(app.getChildren());
-        EntityAsserts.assertAttributeEquals(entity, 
Sensors.newIntegerSensor("x"), 6);
+        EntityAsserts.assertAttributeEqualsEventually(entity, 
Sensors.newIntegerSensor("x"), 6);
     }
 
     @Test(groups="Integration") //because of 500ms delay
diff --git 
a/core/src/test/java/org/apache/brooklyn/core/workflow/WorkflowNestedAndCustomExtensionTest.java
 
b/core/src/test/java/org/apache/brooklyn/core/workflow/WorkflowNestedAndCustomExtensionTest.java
index 3120cfe261..3e67e313ee 100644
--- 
a/core/src/test/java/org/apache/brooklyn/core/workflow/WorkflowNestedAndCustomExtensionTest.java
+++ 
b/core/src/test/java/org/apache/brooklyn/core/workflow/WorkflowNestedAndCustomExtensionTest.java
@@ -537,7 +537,7 @@ public class WorkflowNestedAndCustomExtensionTest extends 
RebindTestFixture<Test
         boolean INNER_ON_ERROR_REPLAY = true;
         boolean OPEN_GATE_EARLY = false;
         Consumer<String> waitABit = (phase) -> Time.sleep((long) (10 * 
Math.random()));
-        Duration COMPLETION_TIMEOUT = Duration.seconds(15);
+        Duration COMPLETION_TIMEOUT = Duration.seconds(20);
 
         public void run() throws Exception {
             // based on WorkflowInputOutputTest.testSetSensorAtomicRequire

Reply via email to