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

zhfeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new bffc69ae4b Fix #3864 to add nofile ulimit in ArangodbTestResource 
(#3865)
bffc69ae4b is described below

commit bffc69ae4b76e6367b80ab657703fd993c493828
Author: Amos Feng <[email protected]>
AuthorDate: Tue Jun 21 18:16:32 2022 +0800

    Fix #3864 to add nofile ulimit in ArangodbTestResource (#3865)
---
 .../quarkus/component/arangodb/it/ArangodbTestResource.java      | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/integration-tests/arangodb/src/test/java/org/apache/camel/quarkus/component/arangodb/it/ArangodbTestResource.java
 
b/integration-tests/arangodb/src/test/java/org/apache/camel/quarkus/component/arangodb/it/ArangodbTestResource.java
index 9b3a8dc275..ca8ac568c3 100644
--- 
a/integration-tests/arangodb/src/test/java/org/apache/camel/quarkus/component/arangodb/it/ArangodbTestResource.java
+++ 
b/integration-tests/arangodb/src/test/java/org/apache/camel/quarkus/component/arangodb/it/ArangodbTestResource.java
@@ -18,6 +18,7 @@ package org.apache.camel.quarkus.component.arangodb.it;
 
 import java.util.Map;
 
+import com.github.dockerjava.api.model.Ulimit;
 import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
 import org.apache.camel.util.CollectionHelper;
 import org.slf4j.Logger;
@@ -29,7 +30,7 @@ import org.testcontainers.utility.TestcontainersConfiguration;
 public class ArangodbTestResource implements 
QuarkusTestResourceLifecycleManager {
 
     private static final Logger LOGGER = 
LoggerFactory.getLogger(ArangodbTestResource.class);
-    private GenericContainer container;
+    private GenericContainer<?> container;
     private static final String CONTAINER_NAME = "arango";
     private static final String ARANGO_IMAGE = "arangodb:latest";
     private static final String ARANGO_NO_AUTH = "ARANGO_NO_AUTH";
@@ -40,11 +41,13 @@ public class ArangodbTestResource implements 
QuarkusTestResourceLifecycleManager
         LOGGER.info(TestcontainersConfiguration.getInstance().toString());
 
         try {
-            container = new GenericContainer(ARANGO_IMAGE)
+            container = new GenericContainer<>(ARANGO_IMAGE)
                     .withExposedPorts(PORT_DEFAULT)
                     .withEnv(ARANGO_NO_AUTH, "1")
                     .withNetworkAliases(CONTAINER_NAME)
-                    .waitingFor(Wait.forLogMessage(".*ArangoDB [(]version 
.*[)] is ready for business. Have fun!.*", 1));
+                    .waitingFor(Wait.forLogMessage(".*ArangoDB [(]version 
.*[)] is ready for business. Have fun!.*", 1))
+                    .withCreateContainerCmdModifier(
+                            cmd -> cmd.getHostConfig().withUlimits(new 
Ulimit[] { new Ulimit("nofile", 65535L, 65535L) }));
 
             container.start();
 

Reply via email to