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

Caideyipi pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/dev/1.3 by this push:
     new 5ace194e658 [Test] Exclude mock initialization from pipe worker 
timeouts (#18886) (#18891)
5ace194e658 is described below

commit 5ace194e6584690d3e3b43631f8af21094274d86
Author: Caideyipi <[email protected]>
AuthorDate: Wed Nov 4 17:28:32 2026 +0800

    [Test] Exclude mock initialization from pipe worker timeouts (#18886) 
(#18891)
    
    (cherry picked from commit f660639add95e5e4ba392a4cdc2467aaf8aea489)
---
 .../task/subtask/processor/PipeProcessorSubtaskWorkerTest.java    | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git 
a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/pipe/agent/task/subtask/processor/PipeProcessorSubtaskWorkerTest.java
 
b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/pipe/agent/task/subtask/processor/PipeProcessorSubtaskWorkerTest.java
index d1d24c11837..deb1219f0fe 100644
--- 
a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/pipe/agent/task/subtask/processor/PipeProcessorSubtaskWorkerTest.java
+++ 
b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/pipe/agent/task/subtask/processor/PipeProcessorSubtaskWorkerTest.java
@@ -30,6 +30,7 @@ import 
com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.ListeningScheduledExecutorService;
 import org.apache.commons.lang3.StringUtils;
 import org.junit.Assert;
+import org.junit.BeforeClass;
 import org.junit.Test;
 import org.mockito.InOrder;
 
@@ -57,6 +58,13 @@ import static org.mockito.Mockito.when;
 
 public class PipeProcessorSubtaskWorkerTest {
 
+  @BeforeClass
+  public static void initializeSubtaskMock() {
+    // Mockito/Byte Buddy initialization can be slow in a fresh CI fork. Keep 
that class loading
+    // outside the test timeouts so they measure worker notifications instead 
of mock startup.
+    mock(PipeProcessorSubtask.class);
+  }
+
   @Test(timeout = 30000)
   public void testOneHundredWaitingPipesDoNotWaitForWorkerPolling() throws 
Exception {
     final CommonConfig config = CommonDescriptor.getInstance().getConfig();

Reply via email to