From 149ff49f1146064cd4ffc25509802f7f44c85291 Mon Sep 17 00:00:00 2001 From: xiangzihao <460888207@qq.com> Date: Thu, 20 Jul 2023 19:17:47 +0800 Subject: [PATCH] increase browser container timeout (#14608) --- .../e2e/core/DolphinSchedulerExtension.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-e2e/dolphinscheduler-e2e-core/src/main/java/org/apache/dolphinscheduler/e2e/core/DolphinSchedulerExtension.java b/dolphinscheduler-e2e/dolphinscheduler-e2e-core/src/main/java/org/apache/dolphinscheduler/e2e/core/DolphinSchedulerExtension.java index 1b2cbfde16..45abb78374 100644 --- a/dolphinscheduler-e2e/dolphinscheduler-e2e-core/src/main/java/org/apache/dolphinscheduler/e2e/core/DolphinSchedulerExtension.java +++ b/dolphinscheduler-e2e/dolphinscheduler-e2e-core/src/main/java/org/apache/dolphinscheduler/e2e/core/DolphinSchedulerExtension.java @@ -139,14 +139,16 @@ final class DolphinSchedulerExtension implements BeforeAllCallback, AfterAllCall .withCapabilities(new ChromeOptions()) .withCreateContainerCmdModifier(cmd -> cmd.withUser("root")) .withFileSystemBind(Constants.HOST_CHROME_DOWNLOAD_PATH.toFile().getAbsolutePath(), - Constants.SELENIUM_CONTAINER_CHROME_DOWNLOAD_PATH); + Constants.SELENIUM_CONTAINER_CHROME_DOWNLOAD_PATH) + .withStartupTimeout(Duration.ofSeconds(120)); } else { browser = new BrowserWebDriverContainer<>() .withCapabilities(new ChromeOptions()) .withCreateContainerCmdModifier(cmd -> cmd.withUser("root")) .withFileSystemBind(Constants.HOST_CHROME_DOWNLOAD_PATH.toFile().getAbsolutePath(), Constants.SELENIUM_CONTAINER_CHROME_DOWNLOAD_PATH) - .withRecordingMode(RECORD_ALL, record.toFile(), MP4); + .withRecordingMode(RECORD_ALL, record.toFile(), MP4) + .withStartupTimeout(Duration.ofSeconds(120)); } }