Skip to content

Commit d879176

Browse files
authored
Prolong the timeout parameters of Zookeeper download for unit test at latest Windows server (#15673)
* Log throwable message if download ZK failed * Prolong timeout to download ZK for unit test at latest Windows server 2025 * Prolong timeout to connect ZK download url for unit test at latest Windows server 2025
1 parent d45ce97 commit d879176

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dubbo-test/dubbo-test-check/src/main/java/org/apache/dubbo/test/check/registrycenter/initializer/DownloadZookeeperInitializer.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ public class DownloadZookeeperInitializer extends ZookeeperInitializer {
6666
/**
6767
* The timeout when download zookeeper binary archive file.
6868
*/
69-
private static final int REQUEST_TIMEOUT = 30 * 1000;
69+
private static final int REQUEST_TIMEOUT = 180 * 1000;
7070

7171
/**
7272
* The timeout when connect the download url.
7373
*/
74-
private static final int CONNECT_TIMEOUT = 10 * 1000;
74+
private static final int CONNECT_TIMEOUT = 60 * 1000;
7575

7676
/**
7777
* Returns {@code true} if the file exists with the given file path, otherwise {@code false}.
@@ -198,7 +198,8 @@ public void onThrowable(Throwable t) {
198198
TESTING_REGISTRY_FAILED_TO_DOWNLOAD_ZK_FILE,
199199
"",
200200
"",
201-
"Failed to download the file, download url: " + url);
201+
"Failed to download the file, download url: " + url,
202+
t);
202203
super.onThrowable(t);
203204
}
204205
});

0 commit comments

Comments
 (0)