You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/02/02 15:33:32 UTC

[camel-quarkus] branch main updated: Fix nitrate collection tests on slow machines

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

jamesnetherton 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 906632c  Fix nitrate collection tests on slow machines
906632c is described below

commit 906632ccbf13fa2afbf957098fb803bdebfacbf2
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();