You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2022/02/03 11:50:47 UTC

[camel-quarkus] 04/05: Fix nitrate collection tests on slow machines

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

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

commit 71c0d54a0c1d3670bb0321cd9c31d9c960ed6e57
Author: James Netherton <ja...@gmail.com>
AuthorDate: Wed Feb 2 13:18:03 2022 +0000

    Fix nitrate collection tests on slow machines
---
 .../apache/camel/quarkus/component/nitrite/it/NitriteResource.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/integration-tests/nitrite/src/main/java/org/apache/camel/quarkus/component/nitrite/it/NitriteResource.java b/integration-tests/nitrite/src/main/java/org/apache/camel/quarkus/component/nitrite/it/NitriteResource.java
index cfb9b9d..ac6c8c4 100644
--- a/integration-tests/nitrite/src/main/java/org/apache/camel/quarkus/component/nitrite/it/NitriteResource.java
+++ b/integration-tests/nitrite/src/main/java/org/apache/camel/quarkus/component/nitrite/it/NitriteResource.java
@@ -106,8 +106,8 @@ public class NitriteResource {
     @GET
     @Produces(MediaType.APPLICATION_JSON)
     public Object collection() throws Exception {
-        final Exchange exchange = consumerTemplate.receiveNoWait(String.format("nitrite://%s?collection=collection",
-                dbFile));
+        final Exchange exchange = consumerTemplate.receive(String.format("nitrite://%s?collection=collection",
+                dbFile), 5000);
         LOG.debugf("Received from nitrite: %s", exchange == null ? null : exchange.getIn().getBody());
         if (exchange == null) {
             return Response.noContent().build();