You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/08/24 15:38:35 UTC
[james-project] branch master updated: JAMES-3775 Increase ClamAV startup timeout (#1150)
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new 2f35fecc65 JAMES-3775 Increase ClamAV startup timeout (#1150)
2f35fecc65 is described below
commit 2f35fecc65e805d297d050ebad8b8da9985b0374
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Wed Aug 24 22:38:29 2022 +0700
JAMES-3775 Increase ClamAV startup timeout (#1150)
---
.../clamav/src/test/java/org/apache/james/clamav/DockerClamAV.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/third-party/clamav/src/test/java/org/apache/james/clamav/DockerClamAV.java b/third-party/clamav/src/test/java/org/apache/james/clamav/DockerClamAV.java
index 863f88048e..4db1eb9782 100644
--- a/third-party/clamav/src/test/java/org/apache/james/clamav/DockerClamAV.java
+++ b/third-party/clamav/src/test/java/org/apache/james/clamav/DockerClamAV.java
@@ -19,6 +19,8 @@
package org.apache.james.clamav;
+import java.time.Duration;
+
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.utility.DockerImageName;
@@ -33,7 +35,8 @@ public class DockerClamAV {
this.container = new GenericContainer<>(DEFAULT_IMAGE_NAME.withTag(DEFAULT_TAG))
.withExposedPorts(DEFAULT_PORT)
.withEnv("CLAMAV_NO_FRESHCLAMD", "true")
- .withEnv("CLAMAV_NO_MILTERD", "true");
+ .withEnv("CLAMAV_NO_MILTERD", "true")
+ .withStartupTimeout(Duration.ofMinutes(2));
}
public Integer getPort() {
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org