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


The following commit(s) were added to refs/heads/master by this push:
     new 1360020f20 add logging for intermittent failing test
1360020f20 is described below

commit 1360020f20897a92a7a0cc00feff66528c301274
Author: Alex Heneveld <[email protected]>
AuthorDate: Wed May 17 11:57:34 2023 +0100

    add logging for intermittent failing test
---
 .../java/org/apache/brooklyn/core/workflow/WorkflowBasicTest.java    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/core/src/test/java/org/apache/brooklyn/core/workflow/WorkflowBasicTest.java 
b/core/src/test/java/org/apache/brooklyn/core/workflow/WorkflowBasicTest.java
index 5cb2ff395a..7dc6d43b33 100644
--- 
a/core/src/test/java/org/apache/brooklyn/core/workflow/WorkflowBasicTest.java
+++ 
b/core/src/test/java/org/apache/brooklyn/core/workflow/WorkflowBasicTest.java
@@ -378,6 +378,11 @@ public class WorkflowBasicTest extends 
BrooklynMgmtUnitTestSupport {
             Object workflowId = ids.get("workflow");
             List tasksIds = (List) ids.get("tasks");
 
+            if (logWatcher.getMessages().size()!=8) {
+                // add logging for intermittent failure; sometimes we are 
getting way more messages than we expect
+                throw new IllegalStateException("Wrong number of messages 
found ("+logWatcher.getMessages().size()+", not 8): "+logWatcher.getMessages());
+            }
+
             Asserts.assertEquals(logWatcher.getMessages(), MutableList.of(
                     "Starting workflow 'myWorkflow (workflow effector)', 
moving to first step "+workflowId+"-1",
                     "Starting step "+workflowId+"-1 in task "+tasksIds.get(0),

Reply via email to