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

wenjun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 8d0202ccaf [CI][UT] Fix flaky unit test (#16151)
8d0202ccaf is described below

commit 8d0202ccaf24f696c8da3ec02b05a59b39389f61
Author: xiangzihao <[email protected]>
AuthorDate: Fri Jun 14 10:47:29 2024 +0800

    [CI][UT] Fix flaky unit test (#16151)
---
 .../plugin/registry/jdbc/MysqlJdbcRegistryTestCase.java                | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/dolphinscheduler-registry/dolphinscheduler-registry-plugins/dolphinscheduler-registry-jdbc/src/test/java/org/apache/dolphinscheduler/plugin/registry/jdbc/MysqlJdbcRegistryTestCase.java
 
b/dolphinscheduler-registry/dolphinscheduler-registry-plugins/dolphinscheduler-registry-jdbc/src/test/java/org/apache/dolphinscheduler/plugin/registry/jdbc/MysqlJdbcRegistryTestCase.java
index d6d5612b43..0db601693b 100644
--- 
a/dolphinscheduler-registry/dolphinscheduler-registry-plugins/dolphinscheduler-registry-jdbc/src/test/java/org/apache/dolphinscheduler/plugin/registry/jdbc/MysqlJdbcRegistryTestCase.java
+++ 
b/dolphinscheduler-registry/dolphinscheduler-registry-plugins/dolphinscheduler-registry-jdbc/src/test/java/org/apache/dolphinscheduler/plugin/registry/jdbc/MysqlJdbcRegistryTestCase.java
@@ -22,6 +22,7 @@ import org.apache.commons.lang3.RandomUtils;
 import java.sql.Connection;
 import java.sql.DriverManager;
 import java.sql.Statement;
+import java.time.Duration;
 import java.util.stream.Stream;
 
 import lombok.SneakyThrows;
@@ -52,7 +53,7 @@ class MysqlJdbcRegistryTestCase extends JdbcRegistryTestCase {
                 .withDatabaseName("dolphinscheduler")
                 .withNetwork(Network.newNetwork())
                 .withExposedPorts(3306)
-                .waitingFor(Wait.forHealthcheck());
+                
.waitingFor(Wait.forHealthcheck().withStartupTimeout(Duration.ofSeconds(300)));
 
         int exposedPort = RandomUtils.nextInt(10000, 65535);
         mysqlContainer.setPortBindings(Lists.newArrayList(exposedPort + 
":3306"));

Reply via email to