This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new fbc3a4e192 harden test code (#6790)
fbc3a4e192 is described below
commit fbc3a4e19294ab159ca67db0274225bfe57cd4bb
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Mon Mar 16 14:06:05 2026 +0100
harden test code (#6790)
---
engine/src/test/java/org/apache/hop/workflow/WorkflowTest.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/engine/src/test/java/org/apache/hop/workflow/WorkflowTest.java
b/engine/src/test/java/org/apache/hop/workflow/WorkflowTest.java
index b2780e0b3c..79d46aaffb 100644
--- a/engine/src/test/java/org/apache/hop/workflow/WorkflowTest.java
+++ b/engine/src/test/java/org/apache/hop/workflow/WorkflowTest.java
@@ -23,9 +23,11 @@ import static org.mockito.Mockito.mock;
import java.util.concurrent.CountDownLatch;
import org.apache.hop.core.HopEnvironment;
import org.apache.hop.core.exception.HopException;
+import org.apache.hop.core.logging.HopLogStore;
import org.apache.hop.workflow.engine.IWorkflowEngine;
import org.apache.hop.workflow.engines.local.LocalWorkflowEngine;
import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class WorkflowTest {
@@ -90,6 +92,13 @@ class WorkflowTest {
HopEnvironment.init();
}
+ @BeforeEach
+ void before() {
+ if (!HopLogStore.isInitialized()) {
+ HopLogStore.init();
+ }
+ }
+
/**
* When a workflow is scheduled twice, it gets the same log channel Id and
both logs get merged
*/